15 lines
335 B
C#
15 lines
335 B
C#
namespace Aeldria.Api.Services;
|
|
|
|
public static class PasswordService
|
|
{
|
|
public static string HashPassword(string password)
|
|
{
|
|
return BCrypt.Net.BCrypt.HashPassword(password);
|
|
}
|
|
|
|
public static bool VerifyPassword(string password, string hash)
|
|
{
|
|
return BCrypt.Net.BCrypt.Verify(password, hash);
|
|
}
|
|
}
|