switch to hardware string from object

This commit is contained in:
Alex Bezdieniezhnykh
2025-05-02 10:14:40 +03:00
parent 2b6a8d1252
commit eb043e94a8
5 changed files with 16 additions and 27 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ public static class Security
public static string ToHash(this string str) =>
Convert.ToBase64String(SHA384.HashData(Encoding.UTF8.GetBytes(str)));
public static string GetHWHash(HardwareInfo hardware) =>
$"Azaion_{hardware.MacAddress}_{hardware.CPU}_{hardware.GPU}".ToHash();
public static string GetHWHash(string hardware) =>
$"Azaion_{hardware}_%$$$)0_".ToHash();
public static string GetApiEncryptionKey(string email, string password, string? hardwareHash) =>
$"{email}-{password}-{hardwareHash}-#%@AzaionKey@%#---".ToHash();