Interface IHashHandler
Interface for securing data by providing hash support.
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface IHashHandlerMethods
GenerateStringHash(Byte[])
Generate a hash based on the input
Declaration
string GenerateStringHash(byte[] input)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | input | The data that should be signed | 
Returns
| Type | Description | 
|---|---|
| System.String | A 256 bit array (32 bytes) | 
VerifyHash(Byte[], String)
Verifies a hash based on the input
Declaration
bool VerifyHash(byte[] input, string hash)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | input | The data that should be verified | 
| System.String | hash | The hash | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the hash is valid | 
