ini
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using BCrypt.Net;
|
||||
|
||||
namespace AuthHex.Utility.passwordHasher;
|
||||
|
||||
public static class PasswordHasher
|
||||
{
|
||||
public static string Hash(string password) => BCrypt.Net.BCrypt.HashPassword(password);
|
||||
public static bool Verify(string password, string hash) => BCrypt.Net.BCrypt.Verify(password, hash);
|
||||
}
|
||||
Reference in New Issue
Block a user