Guest User

Untitled

a guest
Jul 16th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. System.Text.ASCIIEncoding enc = new ASCIIEncoding();
  2. byte[] inp = enc.GetBytes(input);
  3. SHA256 sham = new SHA256Managed();
  4. byte[] result = sham.ComputeHash(inp);
  5.  
  6. System.Text.ASCIIEncoding encoding = new ASCIIEncoding();
  7. return encoding.GetString(result);
Add Comment
Please, Sign In to add comment