finalizare 1.0

This commit is contained in:
andrei-mihnea-cerbu
2024-05-21 12:10:53 +03:00
parent f7795f7519
commit 1cc1d34003
11268 changed files with 2102399 additions and 10909 deletions
@@ -6,14 +6,12 @@ namespace Infrastructure.Services.HashingAlgorithms;
public class HashingAlgorithms : IHashingAlgorithms
{
public string? SHA256Algorithm(string? password)
public string? Sha256Algorithm(string? password)
{
if (password == null) return null;
using (var sha256 = SHA256.Create())
{
var bytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(password));
return Convert.ToBase64String(bytes);
}
using var sha256 = SHA256.Create();
var bytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(password));
return Convert.ToBase64String(bytes);
}
}