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

8 lines
286 B
C#

namespace BankWebApi.Infrastructure;
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);
}