Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IHashHandler

Interface for securing data by providing hash support.

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