Class CryptoExtensions
Crytography extensions.
Namespace: Neon.Cryptography
Assembly: Neon.Cryptography.dll
Syntax
public static class CryptoExtensions
Methods
ComputeHash(MD5, string)
Computes a hash from a UTF-8 encoded string.
Declaration
public static byte[] ComputeHash(this MD5 hasher, string input)
Parameters
Type | Name | Description |
---|---|---|
MD5 | hasher | The hasher. |
string | input | The input string. |
Returns
Type | Description |
---|---|
byte[] | The hash bytes. |
ComputeHashBase64(MD5, string)
Computes a hash from a UTF-8 encoded string and then encodes the result as base-64.
Declaration
public static string ComputeHashBase64(this MD5 hasher, string input)
Parameters
Type | Name | Description |
---|---|---|
MD5 | hasher | The hasher. |
string | input | The input string. |
Returns
Type | Description |
---|---|
string | The hash bytes encoded as base-64. |