Files
PIBD-23_Coursework_Bank/TheBank/BankWebApi/Infrastructure/PasswordHelper.cs

11 lines
343 B
C#

namespace BankWebApi.Infrastructure;
/// <summary>
/// да пох на это
/// </summary>
public class PasswordHelper
{
public static string HashPassword(string password) => BCrypt.Net.BCrypt.HashPassword(password);
public static bool VerifyPassword(string password, string hash) => BCrypt.Net.BCrypt.Verify(password, hash);
}