Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. string key = "53fa36cd57881e5a68e1c70558028b9dded8d72fbb1ea18f42832174313a5753";
  2. string packet = project.Variables["input_string"].Value;
  3. System.Security.Cryptography.HMACSHA256 hm = new System.Security.Cryptography.HMACSHA256(Encoding.ASCII.GetBytes(key));
  4. byte[] result = hm.ComputeHash(Encoding.UTF8.GetBytes(packet));
  5. String hex = BitConverter.ToString(result);
  6. hex = hex.Replace("-", "");
  7. return hex.ToLower();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement