Table of Contents

Class DigestHashFactory

Namespace
Cuemon.AspNetCore.Authentication.Digest
Assembly
Cuemon.AspNetCore.Authentication.dll

Provides access to factory methods for creating and configuring Hash instances based on UnkeyedCryptoHash<TAlgorithm>.

public static class DigestHashFactory
Inheritance
DigestHashFactory

Methods

CreateCrypto(DigestCryptoAlgorithm)

Creates an instance of a cryptographic implementation that derives from UnkeyedCryptoHash<TAlgorithm> with the specified algorithm.

public static Hash CreateCrypto(DigestCryptoAlgorithm algorithm = DigestCryptoAlgorithm.Sha256)

Parameters

algorithm DigestCryptoAlgorithm

The DigestCryptoAlgorithm that defines the cryptographic implementation. Default is Sha256.

Returns

Hash

A Hash implementation of the by parameter specified algorithm.