mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 07:06:34 +00:00
don't send hardware hash, calc on the api
This commit is contained in:
@@ -18,7 +18,7 @@ public class SecurityTest
|
||||
var password = "testpw";
|
||||
var hardwareId = "test_hardware_id";
|
||||
|
||||
var key = Security.MakeEncryptionKey(email, password, hardwareId);
|
||||
var key = Security.GetApiEncryptionKey(email, password, hardwareId);
|
||||
|
||||
var encryptedStream = new MemoryStream();
|
||||
await StringToStream(testString).EncryptTo(encryptedStream, key);
|
||||
@@ -39,7 +39,7 @@ public class SecurityTest
|
||||
var password = "testpw";
|
||||
var hardwareId = "test_hardware_id";
|
||||
|
||||
var key = Security.MakeEncryptionKey(username, password, hardwareId);
|
||||
var key = Security.GetApiEncryptionKey(username, password, hardwareId);
|
||||
|
||||
var largeFilePath = "large.txt";
|
||||
var largeFileDecryptedPath = "large_decrypted.txt";
|
||||
|
||||
Reference in New Issue
Block a user