SecurityUtils.GetMd5Hash method

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

GetMd5Hash(string)

Static

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

public static string GetMd5Hash(string input)

Parameters

input String

The input string

Returns

The hash as a 32-character hexadecimal number.

GetMd5Hash(string, Encoding)

Static

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

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