Interface IPasswordManager
Denotes an entity that manages passwords such as: computes and verified hash tokens
and provides password strength verification
Assembly: Azos.dll
Syntax
public interface IPasswordManager : IApplicationComponent
Properties
Algorithms
Declaration
IRegistry<PasswordHashingAlgorithm> Algorithms { get; }
Property Value
Methods
AreEquivalent(HashedPassword, HashedPassword)
Declaration
bool AreEquivalent(HashedPassword a, HashedPassword b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
CalculateStrenghtPercent(PasswordFamily, SecureBuffer, Int32)
Declaration
int CalculateStrenghtPercent(PasswordFamily family, SecureBuffer password, int maxScore = 0)
Parameters
Returns
Type |
Description |
System.Int32 |
|
CalculateStrenghtScore(PasswordFamily, SecureBuffer)
Declaration
int CalculateStrenghtScore(PasswordFamily family, SecureBuffer password)
Parameters
Returns
Type |
Description |
System.Int32 |
|
ComputeHash(PasswordFamily, SecureBuffer, PasswordStrengthLevel)
Declaration
HashedPassword ComputeHash(PasswordFamily family, SecureBuffer password, PasswordStrengthLevel level = PasswordStrengthLevel.Default)
Parameters
Returns
GeneratePassword(PasswordFamily, PasswordRepresentationType, PasswordStrengthLevel)
Declaration
IEnumerable<PasswordRepresentation> GeneratePassword(PasswordFamily family, PasswordRepresentationType type, PasswordStrengthLevel level = PasswordStrengthLevel.Default)
Parameters
Returns
Verify(SecureBuffer, HashedPassword, out Boolean)
Declaration
bool Verify(SecureBuffer password, HashedPassword hash, out bool needRehash)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods