SecurityHelper.GetSha256Hash method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Security |
---|---|
Assembly | Skybrud.Essentials.dll |
GetSha256Hash(string)
Static
Gets the SHA256 hash of input
, and returns that hash. The input string is converted using System.Text.Encoding.UTF8
.
public static string GetSha256Hash(string input)
Parameters
input
String
The input string
Returns
The hash as a 64-character hexadecimal number.
GetSha256Hash(string, Encoding)
Static
Gets the SHA256 hash of input
, and returns that hash. The input string is converted using encoding
.
public static string GetSha256Hash(string input, Encoding encoding)
Parameters
input
String
The input string
encoding
Encoding
The encoding to be used for the conversion.
Returns
The hash as a 64-character hexadecimal number.