Make it so we can login to accounts created with TC

This commit is contained in:
hondacrx
2020-08-20 23:23:23 -04:00
parent 062eecf20b
commit 165ae9e4f0
4 changed files with 20 additions and 17 deletions
+5 -2
View File
@@ -36,9 +36,12 @@ namespace System
return (lValue & lFlag) != 0;
}
public static string ToHexString(this byte[] byteArray)
public static string ToHexString(this byte[] byteArray, bool reverse = false)
{
return byteArray.Aggregate("", (current, b) => current + b.ToString("X2"));
if (reverse)
return byteArray.Reverse().Aggregate("", (current, b) => current + b.ToString("X2"));
else
return byteArray.Aggregate("", (current, b) => current + b.ToString("X2"));
}
public static byte[] ToByteArray(this string str)