AuthSystem

This commit is contained in:
Artemy
2025-06-18 12:08:21 +07:00
parent de8d97e5bf
commit 2c2c2b805c
12 changed files with 230 additions and 10 deletions
+16
View File
@@ -0,0 +1,16 @@
using Govor.Core.Infrastructure.Extensions;
namespace Govor.API.Services;
public class PasswordHasher : IPasswordHasher
{
public string Hash(string password)
{
return BCrypt.Net.BCrypt.HashPassword(password);
}
public bool Verify(string hashedPassword, string providedPassword)
{
return BCrypt.Net.BCrypt.Verify(hashedPassword, providedPassword);
}
}