Method | Description | |
---|---|---|
ComputeBase64Hash ( string plainText, string salt ) : string |
hashes the given string with given salt to base 64 string
|
|
ComputeHash ( string plainText, string salt ) : string |
hashes the given string with given salt to base 64 string
|
|
ComputeHexadecimalStringHash ( string plainText, string salt ) : string |
hashes the given string with given salt to hexadecimal string
|
|
HashService ( ) : System |
Default constructor that creates defaul hash algorithm to use
|
|
HashService ( |
Constractor to pass a hash algorithm to using in hashing process
|
|
VerifyHash ( string plainText, string hashValue, string salt ) : bool |
Verifies if the hashValue is hashed form of plainText with given salt
|
Method | Description | |
---|---|---|
GetHashBytes ( string plainText, string salt ) : byte[] |
public ComputeBase64Hash ( string plainText, string salt ) : string | ||
plainText | string | plain text to be hashed |
salt | string | Salt that will be used in hashing |
return | string |
public ComputeHash ( string plainText, string salt ) : string | ||
plainText | string | plain text to be hashed |
salt | string | Salt that will be used in hashing |
return | string |
public ComputeHexadecimalStringHash ( string plainText, string salt ) : string | ||
plainText | string | plain text to be hashed |
salt | string | Salt that will be used in hashing |
return | string |
public HashService ( |
||
hashAlgorithm | ||
return | System |
public VerifyHash ( string plainText, string hashValue, string salt ) : bool | ||
plainText | string | Plain text to be verified |
hashValue | string | Hash value to be verified |
salt | string | Salt that will be used in hashing |
return | bool |