Files
helpdesk/backend/HelpDesk.API/Services/PasswordService.cs
T

15 lines
354 B
C#

namespace HelpDesk.API.Services;
public class PasswordService : IPasswordService
{
public string HashPassword(string password)
{
return BCrypt.Net.BCrypt.HashPassword(password);
}
public bool VerifyPassword(string password, string hashedPassword)
{
return BCrypt.Net.BCrypt.Verify(password, hashedPassword);
}
}