#1,015 – Rendering a Byte Array as a Series of Hex Characters
January 21, 2014 1 Comment
You can use theĀ BitConverter class to get a hex representation of a string of bytes.
For example:
byte[] someBytes = { 0x83, 0xDF, 0x0A, 0xA3, 0x92 }; string hex = BitConverter.ToString(someBytes); Console.WriteLine(hex);