Computes the hash value for the specified data using the specified algorithm.
Namespace:
Rebex.Security.Cryptography
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Shared Function ComputeHash ( _ algorithm As HashingAlgorithmId, _ input As Byte() _ ) As Byte() |
C# |
---|
public static byte[] ComputeHash( HashingAlgorithmId algorithm, byte[] input ) |
Parameters
- algorithm
- Type: Rebex.Security.Cryptography..::..HashingAlgorithmId
Hash algorithm.
- input
- Type: array<System..::..Byte>[]()[][]
Input data.