HashingAlgorithm.ComputeHash Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
ComputeHash(Byte[])
Computes the hash value for the specified data.
Declaration
public byte[] ComputeHash(byte[] input)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | input | Input data. |
Returns
Type | Description |
---|---|
Byte[] | Hash value. |
ComputeHash(Byte[], Int32, Int32)
Computes the hash value for the specified data.
Declaration
public byte[] ComputeHash(byte[] input, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | input | Input data. |
Int32 | offset | Input offset. |
Int32 | count | Input length. |
Returns
Type | Description |
---|---|
Byte[] | Hash value. |
ComputeHash(HashingAlgorithmId, Byte[])
Computes the hash value for the specified data using the specified algorithm.
Declaration
public static byte[] ComputeHash(HashingAlgorithmId algorithm, byte[] input)
Parameters
Type | Name | Description |
---|---|---|
HashingAlgorithmId | algorithm | Hash algorithm. |
Byte[] | input | Input data. |
Returns
Type | Description |
---|---|
Byte[] | Hash value. |
ComputeHash(HashingAlgorithmId, Byte[], Int32, Int32)
Computes the hash value for the specified data using the specified algorithm.
Declaration
public static byte[] ComputeHash(HashingAlgorithmId algorithm, byte[] input, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
HashingAlgorithmId | algorithm | Hash algorithm. |
Byte[] | input | Input data. |
Int32 | offset | Input offset. |
Int32 | count | Input length. |
Returns
Type | Description |
---|---|
Byte[] | Hash value. |