Files
Aeldria-API/Services/PasswordService.cs
2026-06-23 13:32:17 +02:00

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