Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Security.Hashes Class Reference

Contains methods for simple hash calculations. More...

Static Public Member Functions

static string BinaryToString (byte[] Data)
 Converts an array of bytes to a string with their hexadecimal representations (in lower case). More...
 
static string BinaryToString (byte[] Data, bool SpaceDelimiter)
 Converts an array of bytes to a string with their hexadecimal representations (in lower case). More...
 
static byte[] StringToBinary (string s)
 Parses a hex string. More...
 
static string ComputeHashString (HashFunction Function, byte[] Data)
 Computes a hash of a block of binary data. More...
 
static string ComputeHashString (HashFunction Function, Stream Data)
 Computes a hash of a block of binary data. More...
 
static byte[] ComputeHash (HashFunction Function, byte[] Data)
 Computes a hash of a block of binary data. More...
 
static byte[] ComputeHash (HashFunction Function, Stream Data)
 Computes a hash of a block of binary data. More...
 
static string ComputeHMACHashString (HashFunction Function, byte[] Key, byte[] Data)
 Computes a hash of a block of binary data. More...
 
static string ComputeHMACHashString (HashFunction Function, byte[] Key, Stream Data)
 Computes a hash of a block of binary data. More...
 
static byte[] ComputeHMACHash (HashFunction Function, byte[] Key, byte[] Data)
 Computes a hash of a block of binary data. More...
 
static byte[] ComputeHMACHash (HashFunction Function, byte[] Key, Stream Data)
 Computes a hash of a block of binary data. More...
 
static string ComputeSHA1HashString (byte[] Data)
 Computes the SHA-1 hash of a block of binary data. More...
 
static string ComputeSHA1HashString (Stream Data)
 Computes the SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeSHA1Hash (byte[] Data)
 Computes the SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeSHA1Hash (Stream Data)
 Computes the SHA-1 hash of a block of binary data. More...
 
static string ComputeSHA256HashString (byte[] Data)
 Computes the SHA-256 hash of a block of binary data. More...
 
static string ComputeSHA256HashString (Stream Data)
 Computes the SHA-256 hash of a block of binary data. More...
 
static byte[] ComputeSHA256Hash (byte[] Data)
 Computes the SHA-256 hash of a block of binary data. More...
 
static byte[] ComputeSHA256Hash (Stream Data)
 Computes the SHA-256 hash of a block of binary data. More...
 
static string ComputeSHA384HashString (byte[] Data)
 Computes the SHA-384 hash of a block of binary data. More...
 
static string ComputeSHA384HashString (Stream Data)
 Computes the SHA-384 hash of a block of binary data. More...
 
static byte[] ComputeSHA384Hash (byte[] Data)
 Computes the SHA-384 hash of a block of binary data. More...
 
static byte[] ComputeSHA384Hash (Stream Data)
 Computes the SHA-384 hash of a block of binary data. More...
 
static string ComputeSHA512HashString (byte[] Data)
 Computes the SHA-512 hash of a block of binary data. More...
 
static string ComputeSHA512HashString (Stream Data)
 Computes the SHA-512 hash of a block of binary data. More...
 
static byte[] ComputeSHA512Hash (byte[] Data)
 Computes the SHA-512 hash of a block of binary data. More...
 
static byte[] ComputeSHA512Hash (Stream Data)
 Computes the SHA-512 hash of a block of binary data. More...
 
static string ComputeMD5HashString (byte[] Data)
 Computes the MD5 hash of a block of binary data. More...
 
static string ComputeMD5HashString (Stream Data)
 Computes the MD5 hash of a block of binary data. More...
 
static byte[] ComputeMD5Hash (byte[] Data)
 Computes the MD5 hash of a block of binary data. More...
 
static byte[] ComputeMD5Hash (Stream Data)
 Computes the MD5 hash of a block of binary data. More...
 
static string ComputeHMACSHA1HashString (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA1Hash (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static string ComputeHMACSHA1HashString (byte[] Key, Stream Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA1Hash (byte[] Key, Stream Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static string ComputeHMACSHA256HashString (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-256 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA256Hash (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-256 hash of a block of binary data. More...
 
static string ComputeHMACSHA256HashString (byte[] Key, Stream Data)
 Computes the HMAC-SHA-256 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA256Hash (byte[] Key, Stream Data)
 Computes the HMAC-SHA-256 hash of a block of binary data. More...
 
static string ComputeHMACSHA384HashString (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-384 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA384Hash (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-384 hash of a block of binary data. More...
 
static string ComputeHMACSHA384HashString (byte[] Key, Stream Data)
 Computes the HMAC-SHA-384 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA384Hash (byte[] Key, Stream Data)
 Computes the HMAC-SHA-384 hash of a block of binary data. More...
 
static string ComputeHMACSHA512HashString (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-512 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA512Hash (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-512 hash of a block of binary data. More...
 
static string ComputeHMACSHA512HashString (byte[] Key, Stream Data)
 Computes the HMAC-SHA-512 hash of a block of binary data. More...
 
static byte[] ComputeHMACSHA512Hash (byte[] Key, Stream Data)
 Computes the HMAC-SHA-512 hash of a block of binary data. More...
 
static string ComputeHMACMD5HashString (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeHMACMD5Hash (byte[] Key, byte[] Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static string ComputeHMACMD5HashString (byte[] Key, Stream Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static byte[] ComputeHMACMD5Hash (byte[] Key, Stream Data)
 Computes the HMAC-SHA-1 hash of a block of binary data. More...
 
static HashFunctionArray GetHashFunctionArray (HashFunction Function)
 Converts an enumeration value to a delegate to the corresponding hash function. More...
 
static HashFunctionStream GetHashFunctionStream (HashFunction Function)
 Converts an enumeration value to a delegate to the corresponding hash function. More...
 

Detailed Description

Contains methods for simple hash calculations.

Definition at line 56 of file Hashes.cs.

Member Function Documentation

◆ BinaryToString() [1/2]

static string Waher.Security.Hashes.BinaryToString ( byte[]  Data)
static

Converts an array of bytes to a string with their hexadecimal representations (in lower case).

Parameters
DataBinary Data
Returns
Hexadecimal string representation.

Definition at line 63 of file Hashes.cs.

◆ BinaryToString() [2/2]

static string Waher.Security.Hashes.BinaryToString ( byte[]  Data,
bool  SpaceDelimiter 
)
static

Converts an array of bytes to a string with their hexadecimal representations (in lower case).

Parameters
DataBinary Data
SpaceDelimiterIf bytes are to be separated by space characters.
Returns
Hexadecimal string representation.

Definition at line 74 of file Hashes.cs.

◆ ComputeHash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHash ( HashFunction  Function,
byte[]  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
DataBinary data.
Returns
Hash value.

Definition at line 212 of file Hashes.cs.

◆ ComputeHash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHash ( HashFunction  Function,
Stream  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
DataBinary data.
Returns
Hash value.

Definition at line 242 of file Hashes.cs.

◆ ComputeHashString() [1/2]

static string Waher.Security.Hashes.ComputeHashString ( HashFunction  Function,
byte[]  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
DataBinary data.
Returns
String representation of hash.

Definition at line 152 of file Hashes.cs.

◆ ComputeHashString() [2/2]

static string Waher.Security.Hashes.ComputeHashString ( HashFunction  Function,
Stream  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
DataBinary data.
Returns
String representation of hash.

Definition at line 182 of file Hashes.cs.

◆ ComputeHMACHash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACHash ( HashFunction  Function,
byte[]  Key,
byte[]  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 335 of file Hashes.cs.

◆ ComputeHMACHash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACHash ( HashFunction  Function,
byte[]  Key,
Stream  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 366 of file Hashes.cs.

◆ ComputeHMACHashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACHashString ( HashFunction  Function,
byte[]  Key,
byte[]  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 273 of file Hashes.cs.

◆ ComputeHMACHashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACHashString ( HashFunction  Function,
byte[]  Key,
Stream  Data 
)
static

Computes a hash of a block of binary data.

Parameters
FunctionHash function.
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 304 of file Hashes.cs.

◆ ComputeHMACMD5Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACMD5Hash ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 909 of file Hashes.cs.

◆ ComputeHMACMD5Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACMD5Hash ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 938 of file Hashes.cs.

◆ ComputeHMACMD5HashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACMD5HashString ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 898 of file Hashes.cs.

◆ ComputeHMACMD5HashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACMD5HashString ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 927 of file Hashes.cs.

◆ ComputeHMACSHA1Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA1Hash ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 677 of file Hashes.cs.

◆ ComputeHMACSHA1Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA1Hash ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 706 of file Hashes.cs.

◆ ComputeHMACSHA1HashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACSHA1HashString ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 666 of file Hashes.cs.

◆ ComputeHMACSHA1HashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACSHA1HashString ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-1 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 695 of file Hashes.cs.

◆ ComputeHMACSHA256Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA256Hash ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-256 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 735 of file Hashes.cs.

◆ ComputeHMACSHA256Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA256Hash ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-256 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 764 of file Hashes.cs.

◆ ComputeHMACSHA256HashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACSHA256HashString ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-256 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 724 of file Hashes.cs.

◆ ComputeHMACSHA256HashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACSHA256HashString ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-256 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 753 of file Hashes.cs.

◆ ComputeHMACSHA384Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA384Hash ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-384 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 793 of file Hashes.cs.

◆ ComputeHMACSHA384Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA384Hash ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-384 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 822 of file Hashes.cs.

◆ ComputeHMACSHA384HashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACSHA384HashString ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-384 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 782 of file Hashes.cs.

◆ ComputeHMACSHA384HashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACSHA384HashString ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-384 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 811 of file Hashes.cs.

◆ ComputeHMACSHA512Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA512Hash ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-512 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 851 of file Hashes.cs.

◆ ComputeHMACSHA512Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeHMACSHA512Hash ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-512 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
Hash value.

Definition at line 880 of file Hashes.cs.

◆ ComputeHMACSHA512HashString() [1/2]

static string Waher.Security.Hashes.ComputeHMACSHA512HashString ( byte[]  Key,
byte[]  Data 
)
static

Computes the HMAC-SHA-512 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 840 of file Hashes.cs.

◆ ComputeHMACSHA512HashString() [2/2]

static string Waher.Security.Hashes.ComputeHMACSHA512HashString ( byte[]  Key,
Stream  Data 
)
static

Computes the HMAC-SHA-512 hash of a block of binary data.

Parameters
KeyBinary key.
DataBinary data.
Returns
String representation of hash.

Definition at line 869 of file Hashes.cs.

◆ ComputeMD5Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeMD5Hash ( byte[]  Data)
static

Computes the MD5 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 631 of file Hashes.cs.

◆ ComputeMD5Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeMD5Hash ( Stream  Data)
static

Computes the MD5 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 648 of file Hashes.cs.

◆ ComputeMD5HashString() [1/2]

static string Waher.Security.Hashes.ComputeMD5HashString ( byte[]  Data)
static

Computes the MD5 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 611 of file Hashes.cs.

◆ ComputeMD5HashString() [2/2]

static string Waher.Security.Hashes.ComputeMD5HashString ( Stream  Data)
static

Computes the MD5 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 621 of file Hashes.cs.

◆ ComputeSHA1Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeSHA1Hash ( byte[]  Data)
static

Computes the SHA-1 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 415 of file Hashes.cs.

◆ ComputeSHA1Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeSHA1Hash ( Stream  Data)
static

Computes the SHA-1 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 432 of file Hashes.cs.

◆ ComputeSHA1HashString() [1/2]

static string Waher.Security.Hashes.ComputeSHA1HashString ( byte[]  Data)
static

Computes the SHA-1 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 395 of file Hashes.cs.

◆ ComputeSHA1HashString() [2/2]

static string Waher.Security.Hashes.ComputeSHA1HashString ( Stream  Data)
static

Computes the SHA-1 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 405 of file Hashes.cs.

◆ ComputeSHA256Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeSHA256Hash ( byte[]  Data)
static

Computes the SHA-256 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 469 of file Hashes.cs.

◆ ComputeSHA256Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeSHA256Hash ( Stream  Data)
static

Computes the SHA-256 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 486 of file Hashes.cs.

◆ ComputeSHA256HashString() [1/2]

static string Waher.Security.Hashes.ComputeSHA256HashString ( byte[]  Data)
static

Computes the SHA-256 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 449 of file Hashes.cs.

◆ ComputeSHA256HashString() [2/2]

static string Waher.Security.Hashes.ComputeSHA256HashString ( Stream  Data)
static

Computes the SHA-256 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 459 of file Hashes.cs.

◆ ComputeSHA384Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeSHA384Hash ( byte[]  Data)
static

Computes the SHA-384 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 523 of file Hashes.cs.

◆ ComputeSHA384Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeSHA384Hash ( Stream  Data)
static

Computes the SHA-384 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 540 of file Hashes.cs.

◆ ComputeSHA384HashString() [1/2]

static string Waher.Security.Hashes.ComputeSHA384HashString ( byte[]  Data)
static

Computes the SHA-384 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 503 of file Hashes.cs.

◆ ComputeSHA384HashString() [2/2]

static string Waher.Security.Hashes.ComputeSHA384HashString ( Stream  Data)
static

Computes the SHA-384 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 513 of file Hashes.cs.

◆ ComputeSHA512Hash() [1/2]

static byte[] Waher.Security.Hashes.ComputeSHA512Hash ( byte[]  Data)
static

Computes the SHA-512 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 577 of file Hashes.cs.

◆ ComputeSHA512Hash() [2/2]

static byte[] Waher.Security.Hashes.ComputeSHA512Hash ( Stream  Data)
static

Computes the SHA-512 hash of a block of binary data.

Parameters
DataBinary data.
Returns
Hash value.

Definition at line 594 of file Hashes.cs.

◆ ComputeSHA512HashString() [1/2]

static string Waher.Security.Hashes.ComputeSHA512HashString ( byte[]  Data)
static

Computes the SHA-512 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 557 of file Hashes.cs.

◆ ComputeSHA512HashString() [2/2]

static string Waher.Security.Hashes.ComputeSHA512HashString ( Stream  Data)
static

Computes the SHA-512 hash of a block of binary data.

Parameters
DataBinary data.
Returns
String representation of hash.

Definition at line 567 of file Hashes.cs.

◆ GetHashFunctionArray()

static HashFunctionArray Waher.Security.Hashes.GetHashFunctionArray ( HashFunction  Function)
static

Converts an enumeration value to a delegate to the corresponding hash function.

Parameters
FunctionHash function enumeration value.
Returns
Delegate to the corresponding hash function.

Definition at line 955 of file Hashes.cs.

◆ GetHashFunctionStream()

static HashFunctionStream Waher.Security.Hashes.GetHashFunctionStream ( HashFunction  Function)
static

Converts an enumeration value to a delegate to the corresponding hash function.

Parameters
FunctionHash function enumeration value.
Returns
Delegate to the corresponding hash function.

Definition at line 984 of file Hashes.cs.

◆ StringToBinary()

static byte[] Waher.Security.Hashes.StringToBinary ( string  s)
static

Parses a hex string.

Parameters
sString.
Returns
Array of bytes found in the string, or null if not a hex string.

Definition at line 100 of file Hashes.cs.


The documentation for this class was generated from the following file: