internal static System.String hex(byte[] b)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
try
{
int i;
for (i = 0; i < b.Length; ++i)
sb.Append(hex0(b[i]));
}
catch (System.Exception)
{
// Debug function, ignore errors.
}
return sb.ToString();
}