MD5Core
Computes MD5 message digests for byte arrays and encoded text.
MD5 is not suitable as a general-purpose cryptographic hash for security-sensitive use.
Definition
Namespace:Telerik.WinForms.Documents.Utils
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public sealed class MD5Core
Inheritance: objectMD5Core
Methods
Computes the 16-byte MD5 digest of the specified bytes.
public static byte[] GetHash(byte[] input)
The bytes to hash.
Returns:byte[]
The 16-byte MD5 digest.
Exceptions: ArgumentNullExceptioninput is null.
Computes the 16-byte MD5 digest of a string encoded with the specified encoding.
public static byte[] GetHash(string input, Encoding encoding)
The text to hash.
encodingEncodingThe encoding used to convert the text to bytes.
Returns:byte[]
The 16-byte MD5 digest.
Exceptions: ArgumentNullExceptioninput or encoding is null.
Computes the 16-byte MD5 digest of a string encoded as UTF-8.
public static byte[] GetHash(string input)
The text to hash.
Returns:byte[]
The 16-byte MD5 digest.
Exceptions: ArgumentNullExceptioninput is null.
Computes an MD5 digest and formats it as uppercase hexadecimal without separators.
public static string GetHashString(byte[] input)
The bytes to hash.
Returns:The 32-character hexadecimal digest.
Exceptions: ArgumentNullExceptioninput is null.
Computes an MD5 digest of text encoded with the specified encoding and formats it as uppercase hexadecimal.
public static string GetHashString(string input, Encoding encoding)
The text to hash.
encodingEncodingThe encoding used to convert the text to bytes.
Returns:The 32-character hexadecimal digest without separators.
Exceptions: ArgumentNullExceptioninput or encoding is null.
Computes the MD5 digest of a string encoded as UTF-8 and formats it as uppercase hexadecimal.
public static string GetHashString(string input)
The text to hash.
Returns:The 32-character hexadecimal digest without separators.
Exceptions: ArgumentNullExceptioninput is null.