Changed ToHex-Conversion to use upper case characters

This commit is contained in:
DarthAffe committed 2018-06-10 21:57:10 +02:00
1 parent 328074bfa2
commit 263dddcee3
1 file changed
+2 -2
+2 -2
View File
@@ -20,10 +20,10 @@
for (int bx = 0, cx = 0; bx < bytes.Length; ++bx, ++cx)
{
byte b = ((byte)(bytes[bx] >> 4));
c[cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
c[cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
b = ((byte)(bytes[bx] & 0x0F));
c[++cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
c[++cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
}
return new string(c);