November Happy Hour will be moved to Thursday December 5th.

Interface IHashHandler

Interface for securing data by providing hash support.

Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 10.10.4
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