Class MD5PasswordHashingAlgorithm
Inheritance
System.Object
MD5PasswordHashingAlgorithm
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Security
Assembly: Azos.dll
Syntax
public class MD5PasswordHashingAlgorithm : PasswordHashingAlgorithm<MD5PasswordHashingOptions>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, IConfigurable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, INamed
Constructors
MD5PasswordHashingAlgorithm(IPasswordManagerImplementation, String)
Declaration
public MD5PasswordHashingAlgorithm(IPasswordManagerImplementation director, string name)
Parameters
Type | Name | Description |
---|---|---|
IPasswordManagerImplementation | director | |
System.String | name |
Fields
DEFAULT_SALT_MAX_LENGTH
Declaration
public const int DEFAULT_SALT_MAX_LENGTH = 32
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
DefaultPasswordHashingOptions
Declaration
protected override MD5PasswordHashingOptions DefaultPasswordHashingOptions { get; }
Property Value
Type | Description |
---|---|
MD5PasswordHashingOptions |
Overrides
Azos.Security.PasswordHashingAlgorithm<Azos.Security.MD5PasswordHashingOptions>.DefaultPasswordHashingOptions
SaltMaxLenght
Declaration
[Config(Default = 32)]
public int SaltMaxLenght { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SaltMinLenght
Declaration
[Config(Default = 16)]
public int SaltMinLenght { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DoAreEquivalent(HashedPassword, HashedPassword)
Declaration
protected override bool DoAreEquivalent(HashedPassword hash, HashedPassword rehash)
Parameters
Type | Name | Description |
---|---|---|
HashedPassword | hash | |
HashedPassword | rehash |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
DoComputeHash(PasswordFamily, SecureBuffer, MD5PasswordHashingOptions)
Declaration
protected override HashedPassword DoComputeHash(PasswordFamily family, SecureBuffer password, MD5PasswordHashingOptions options)
Parameters
Type | Name | Description |
---|---|---|
PasswordFamily | family | |
SecureBuffer | password | |
MD5PasswordHashingOptions | options |
Returns
Type | Description |
---|---|
HashedPassword |
Overrides
Azos.Security.PasswordHashingAlgorithm<Azos.Security.MD5PasswordHashingOptions>.DoComputeHash(Azos.Security.PasswordFamily, Azos.Security.SecureBuffer, Azos.Security.MD5PasswordHashingOptions)
DoExtractPasswordHashingOptions(HashedPassword, out Boolean)
Declaration
protected override MD5PasswordHashingOptions DoExtractPasswordHashingOptions(HashedPassword hash, out bool needRehash)
Parameters
Type | Name | Description |
---|---|---|
HashedPassword | hash | |
System.Boolean | needRehash |
Returns
Type | Description |
---|---|
MD5PasswordHashingOptions |
Overrides
Azos.Security.PasswordHashingAlgorithm<Azos.Security.MD5PasswordHashingOptions>.DoExtractPasswordHashingOptions(Azos.Security.HashedPassword, System.Boolean)
Implements
System.IDisposable