This commit is contained in:
Kalana B. Thilakarathna
2026-10-19 02:14:25 +05:30
commit f081bca82e
57 changed files with 7274 additions and 0 deletions
+9
View File
@@ -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);
}