namespace Features.Users.Identity; /// /// Service for hashing and verifying user passwords. /// public interface IPasswordInfrastructure { /// /// Hashes a plaintext password, generating a new random salt. /// public string Hash(string password); /// /// Verifies a plaintext password against a previously stored hash produced by . /// public bool Verify(string password, string stored); }