mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
18 lines
519 B
C#
18 lines
519 B
C#
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);
|
|
}
|