SecurityUtils.GetSha1Hash method

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

GetSha1Hash(string)

Static

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

public static string GetSha1Hash(string input)

Parameters

input String

The input string

Returns

The hash as a 40-character hexadecimal number.

GetSha1Hash(string, Encoding)

Static

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

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