Table of Contents

CreateCrypto Method

Definition

Namespace
Cuemon.AspNetCore.Authentication.Digest
Assemblies
Cuemon.AspNetCore.Authentication.dll
Source
src/Cuemon.AspNetCore.Authentication/Digest/DigestHashFactory.cs

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.