Created
June 30, 2015 14:00
-
-
Save lnmunhoz/df93858e0513a0b4280e to your computer and use it in GitHub Desktop.
Convert Hash of Bytes to String
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
public string ByteArrayToString(byte[] ba) | |
{ | |
StringBuilder hex = new StringBuilder(ba.Length * 2); | |
foreach (byte b in ba) hex.AppendFormat("{0:x2}", b); | |
return hex.ToString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment