Created
October 30, 2023 13:24
-
-
Save bjoerntx/4d53bf79dda458569acabd0cf8b480e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string CreateHash(string json) | |
{ | |
using (SHA256 sha256Hash = SHA256.Create()) | |
{ | |
byte[] bytes = sha256Hash.ComputeHash(Encoding.UTF8.GetBytes(json)); | |
return BitConverter.ToString(bytes).Replace("-", "").ToLower(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment