API V1 Aeldria
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user