mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 12:56:33 +00:00
structure app by rest api standards
add getusers tidy up BusinessException
This commit is contained in:
@@ -10,8 +10,8 @@ public static class Security
|
||||
public static string ToHash(this string str) =>
|
||||
Convert.ToBase64String(SHA384.HashData(Encoding.UTF8.GetBytes(str)));
|
||||
|
||||
public static string MakeEncryptionKey(string username, string password) =>
|
||||
$"{username}-{password}---#%@AzaionKey@%#---";
|
||||
public static string MakeEncryptionKey(string username, string password, string hardwareId) =>
|
||||
$"{username}-{password}-{hardwareId}-#%@AzaionKey@%#---";
|
||||
|
||||
public static async Task EncryptTo(this Stream stream, Stream toStream, string key, CancellationToken cancellationToken = default)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user