SecurityHelper.GetSha512Hash method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Security
Assembly Skybrud.Essentials.dll

GetSha512Hash(string)

Static

Gets the SHA512 hash of input, and returns that hash. The input string is converted using System.Text.Encoding.UTF8.

public static string GetSha512Hash(string input)

Parameters

input String

The input string

Returns

The hash as a 128-character hexadecimal number.

GetSha512Hash(string, Encoding)

Static

Gets the SHA512 hash of input, and returns that hash. The input string is converted using encoding.

public static string GetSha512Hash(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 128-character hexadecimal number.