Implementación fundacional del proyecto PruebaGentle: - Arquitectura Clean/Hexagonal: Core, Infrastructure, API - 6 Stored Procedures para CRUD + autenticación - JWT authentication con BCrypt password hashing - Docker Compose (SQL Server + Backend) - Solución .NET 10 con Dapper + SqlClient Closes #1
17 lines
368 B
C#
17 lines
368 B
C#
using PruebaGentle.Core.Interfaces;
|
|
|
|
namespace PruebaGentle.Infrastructure.Services;
|
|
|
|
public class PasswordHasher : IPasswordHasher
|
|
{
|
|
public string Hash(string password)
|
|
{
|
|
return BCrypt.Net.BCrypt.HashPassword(password);
|
|
}
|
|
|
|
public bool Verify(string password, string hash)
|
|
{
|
|
return BCrypt.Net.BCrypt.Verify(password, hash);
|
|
}
|
|
}
|