Move Infrastructure.PasswordHashing into Features.Users (#286)

This commit is contained in:
Aaron Po
2026-09-11 22:21:22 -04:00
committed by GitHub
parent f85ff79a2c
commit 5fa78fbdf6
9 changed files with 6 additions and 20 deletions

View File

@@ -0,0 +1,17 @@
namespace Features.Users.Identity;
/// <summary>
/// Service for hashing and verifying user passwords.
/// </summary>
public interface IPasswordInfrastructure
{
/// <summary>
/// Hashes a plaintext password, generating a new random salt.
/// </summary>
public string Hash(string password);
/// <summary>
/// Verifies a plaintext password against a previously stored hash produced by <see cref="Hash" />.
/// </summary>
public bool Verify(string password, string stored);
}