Interface IHashHandler

Interface for securing data by providing hash support.

Namespace: EPiServer.Security
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public interface IHashHandler

Methods

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

Extension Methods