Method | Description | |
---|---|---|
DecodeIterations ( string prefix ) : int | ||
EncodeIterations ( int count ) : string | ||
GenerateNumericCode ( int digits ) : string | ||
GenerateSalt ( ) : string | ||
GetCurrentYear ( ) : int | ||
GetIterationsFromYear ( int year ) : int | ||
Hash ( string value ) : string | ||
Hash ( string value, string key ) : string | ||
HashPassword ( string password, int iterations ) : string | ||
SlowEquals ( string a, string b ) : bool | ||
VerifyHash ( string value, string hash ) : bool | ||
VerifyHash ( string value, string key, string hash ) : bool | ||
VerifyHashedPassword ( string hashedPassword, string password ) : bool |
Method | Description | |
---|---|---|
SlowEqualsInternal ( string a, string b ) : bool |
public DecodeIterations ( string prefix ) : int | ||
prefix | string | |
return | int |
public EncodeIterations ( int count ) : string | ||
count | int | |
return | string |
public GenerateNumericCode ( int digits ) : string | ||
digits | int | |
return | string |
public GetIterationsFromYear ( int year ) : int | ||
year | int | |
return | int |
public Hash ( string value, string key ) : string | ||
value | string | |
key | string | |
return | string |
public HashPassword ( string password, int iterations ) : string | ||
password | string | |
iterations | int | |
return | string |
public SlowEquals ( string a, string b ) : bool | ||
a | string | |
b | string | |
return | bool |
public VerifyHash ( string value, string hash ) : bool | ||
value | string | |
hash | string | |
return | bool |
public VerifyHash ( string value, string key, string hash ) : bool | ||
value | string | |
key | string | |
hash | string | |
return | bool |
public VerifyHashedPassword ( string hashedPassword, string password ) : bool | ||
hashedPassword | string | |
password | string | |
return | bool |