Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string key = "53fa36cd57881e5a68e1c70558028b9dded8d72fbb1ea18f42832174313a5753";
- string packet = project.Variables["input_string"].Value;
- System.Security.Cryptography.HMACSHA256 hm = new System.Security.Cryptography.HMACSHA256(Encoding.ASCII.GetBytes(key));
- byte[] result = hm.ComputeHash(Encoding.UTF8.GetBytes(packet));
- String hex = BitConverter.ToString(result);
- hex = hex.Replace("-", "");
- return hex.ToLower();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement