SecurityHelper.GetHash method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Security |
---|---|
Assembly | Skybrud.Essentials.dll |
GetHash(HashAlgorithm, string)
Static
Gets the hash of input
using the specified algorithm
.
public static string GetHash(HashAlgorithm algorithm, string input)
Parameters
algorithm
HashAlgorithm
The algorithm to be used.
input
String
The input string to be hashed.
Returns
The hash as a hexadecimal number.
GetHash(HashAlgorithm, string, Encoding)
Static
Gets the hash of input
using the specified algorithm
.
public static string GetHash(HashAlgorithm algorithm, string input, Encoding encoding)
Parameters
algorithm
HashAlgorithm
The algorithm to be used.
input
String
The input string to be hashed.
encoding
Encoding
The encoding to be used.
Returns
The hash as a hexadecimal number.