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.

Return Value

Hash value.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also