HashFunctions.ComputeHash

A simpler version of ComputeHash that uses the specified algorithm and a random salt.

public static string ComputeHash(string plainText,
	string hashAlgorithm)

Return Value

Hash value formatted as a base64-encoded string.

Parameters

plainText
Plaintext value to be hashed. The function does not check whether this parameter is null.

hashAlgorithm
Name of the hash algorithm. Allowed values are: "MD5", "SHA1", "SHA256", "SHA384", and "SHA512" (if any other value is specified MD5 hashing algorithm will be used). This value is case-insensitive.

Overloads:


See also:

Class HashFunctions