Created
January 24, 2014 20:47
-
-
Save thinktainer/8606058 to your computer and use it in GitHub Desktop.
format hex string from byte array c#
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
// Loop through each byte of the hashed data | |
// and format each one as a hexadecimal string. | |
for (int i = 0; i < data.Length; i++) | |
{ | |
sBuilder.Append(data[i].ToString("x2")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment