ContentHash Module
Content hashing helpers (SHA256, SHA1, MD5). Netstandard2.1 compatible.
Functions and values
| Function or value |
Description
|
Full Usage:
ContentHash.hashHex alg data
Parameters:
HashAlgorithm
data : byte[]
Returns: string
|
Generic: hash bytes to lowercase hex using any HashAlgorithm. The hash algorithm instance to use. The byte array to hash.
|
Full Usage:
ContentHash.md5Hex s
Parameters:
string
Returns: string
|
MD5 hash of a string (UTF-8) as lowercase hex string. The string to hash.
|
Full Usage:
ContentHash.md5HexBytes data
Parameters:
byte[]
Returns: string
|
MD5 hash of bytes as lowercase hex string. The byte array to hash.
|
Full Usage:
ContentHash.sha1 data
Parameters:
byte[]
Returns: byte[]
|
SHA1 hash of byte array. The byte array to hash.
|
Full Usage:
ContentHash.sha1Hex data
Parameters:
byte[]
Returns: string
|
SHA1 hash as lowercase hex string. The byte array to hash.
|
Full Usage:
ContentHash.sha256 data
Parameters:
byte[]
Returns: byte[]
|
SHA256 hash of byte array. The byte array to hash.
|
Full Usage:
ContentHash.sha256Hex s
Parameters:
string
Returns: string
|
SHA256 hash as lowercase hex string. The string to hash.
|
Full Usage:
ContentHash.sha256HexBytes data
Parameters:
byte[]
Returns: string
|
SHA256 hash of bytes as lowercase hex string. The byte array to hash.
|
Full Usage:
ContentHash.sha256String s
Parameters:
string
Returns: byte[]
|
SHA256 hash of a string (UTF-8). The string to hash.
|
TDesu.FSharp