메소드 | 설명 | |
---|---|---|
GenerateHash ( string password ) : string |
Generate a salted hash for a password. The returned string contains is formated like this: PBKDF2{nuber of iterations in hexa}.{salt length in hexa}.{salt}{key size in hexa}.{key}
|
|
IsPBKDF2Hash ( string hash ) : bool |
Returns true if the hash starts with the PBKDF2 prefix
|
|
VerifyHash ( string password, string hash ) : bool |
Verifies the hash.
|
메소드 | 설명 | |
---|---|---|
ComputeHash ( byte password, byte salt, int keySize ) : byte[] |
Compute the actual hash for the password and salt using keySize as the key size in bytes.
|
|
GenerateSalt ( int size ) : byte[] |
Generates the salt.
|
public static GenerateHash ( string password ) : string | ||
password | string | Passord to hash |
리턴 | string |
public static IsPBKDF2Hash ( string hash ) : bool | ||
hash | string | hash to check for PBKDF2 prefix |
리턴 | bool |
public static VerifyHash ( string password, string hash ) : bool | ||
password | string | The password. |
hash | string | The hash. |
리턴 | bool |