mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Move Infrastructure.PasswordHashing into Features.Users (#286)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user