Created
January 5, 2022 00:38
-
-
Save mirsaeedi/1e756b48eb70cc988286a81b856646b9 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
byte[] buffer = GetSomeBuffer(); | |
using (var sha256 = SHA256.Create()) | |
{ | |
byte[] digest = sha256.ComputeHash(buffer); | |
/* use 'digest' here */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment