Is it possible to write this method in a prettier way?
public static string ByteArrayToString(byte[] byteArray)
{
var hex = new StringBuilder(byteArray.Length * 2);
foreach (var b in byteArray)
hex.AppendFormat("{0:x2}", b);
return hex.ToString();
}