Files
Distribution_auth/Utility/PasswordHasher.cs
T
Kalana B. Thilakarathna f081bca82e init
2026-10-19 02:14:25 +05:30

10 lines
301 B
C#

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);
}