mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 10:36:33 +00:00
structure app by rest api standards
add getusers tidy up BusinessException
This commit is contained in:
@@ -15,7 +15,9 @@ public class SecurityTest
|
||||
var testString = "Hello World Test dfvjkhsdbfvkljh sabdljsdafv asdv";
|
||||
var username = "user@azaion.com";
|
||||
var password = "testpw";
|
||||
var key = Security.MakeEncryptionKey(username, password);
|
||||
var hardwareId = "test_hardware_id";
|
||||
|
||||
var key = Security.MakeEncryptionKey(username, password, hardwareId);
|
||||
|
||||
var encryptedStream = new MemoryStream();
|
||||
await StringToStream(testString).EncryptTo(encryptedStream, key);
|
||||
@@ -34,7 +36,9 @@ public class SecurityTest
|
||||
{
|
||||
var username = "user@azaion.com";
|
||||
var password = "testpw";
|
||||
var key = Security.MakeEncryptionKey(username, password);
|
||||
var hardwareId = "test_hardware_id";
|
||||
|
||||
var key = Security.MakeEncryptionKey(username, password, hardwareId);
|
||||
|
||||
var largeFilePath = "large.txt";
|
||||
var largeFileDecryptedPath = "large_decrypted.txt";
|
||||
|
||||
Reference in New Issue
Block a user