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(), _
	offset As Integer, _
	count As Integer _
) As Byte()
C#
public static byte[] ComputeHash(
	HashingAlgorithmId algorithm,
	byte[] input,
	int offset,
	int count
)

Parameters

algorithm
Type: Rebex.Security.Cryptography..::..HashingAlgorithmId
Hash algorithm.
input
Type: array<System..::..Byte>[]()[][]
Input data.
offset
Type: System..::..Int32
Input offset.
count
Type: System..::..Int32
Input length.

Return Value

Hash value.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also