Méthode | Description | |
---|---|---|
Generate ( string password ) : string |
Generates the hash.
|
|
SaltedHash ( ) : System.Linq |
Initializes a new instance of the SaltedHash class. Default constructor which initializes the SaltedHash with the SHA256Managed algorithm and a Salt of 4 bytes ( or 4*8 = 32 bits) |
|
SaltedHash ( |
Initializes a new instance of the SaltedHash class.
|
|
Verify ( string password, string hash ) : bool |
Verifies the hash.
|
|
VerifyHash ( string password, string hash ) : bool |
Verifies the hash.
|
Méthode | Description | |
---|---|---|
ComputeHash ( byte password, byte salt ) : byte[] |
The actual hash calculation is shared by both GetHashAndSalt and the VerifyHash functions
|
|
GenerateHash ( string password ) : string | ||
GenerateSalt ( ) : byte[] |
Generates the salt.
|
public static Generate ( string password ) : string | ||
password | string | The password. |
Résultat | string |
public SaltedHash ( |
||
hashAlgorithm | A |
|
saltLength | int | Length of the salt. |
Résultat | System.Linq |
public static Verify ( string password, string hash ) : bool | ||
password | string | The password. |
hash | string | The hash. |
Résultat | bool |
public VerifyHash ( string password, string hash ) : bool | ||
password | string | The password. |
hash | string | The hash. |
Résultat | bool |