Method ComputeHash
ComputeHash(Byte[], Byte[])
Computes a new hash of data usign the key specified.
Declaration
public byte[] ComputeHash(byte[] key, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | key | A byte array containing the key (secret) to use to generate a hash. |
| System.Byte[] | data | A byte arrasy containing the data to be hashed. |
Returns
| Type | Description |
|---|---|
| System.Byte[] | A new byte array containing the hash result. |
ComputeHash(Byte[], Byte[])
Computes a new hash of data usign the key specified.
Declaration
public byte[] ComputeHash(byte[] key, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | key | A byte array containing the key (secret) to use to generate a hash. |
| System.Byte[] | data | A byte arrasy containing the data to be hashed. |
Returns
| Type | Description |
|---|---|
| System.Byte[] | A new byte array containing the hash result. |
ComputeHash(Byte[], Byte[])
Computes a new hash of data usign the key specified.
Declaration
public byte[] ComputeHash(byte[] key, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | key | A byte array containing the key (secret) to use to generate a hash. |
| System.Byte[] | data | A byte arrasy containing the data to be hashed. |
Returns
| Type | Description |
|---|---|
| System.Byte[] | A new byte array containing the hash result. |