Class DigestHashFactory
- 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
DigestCryptoAlgorithmThe DigestCryptoAlgorithm that defines the cryptographic implementation. Default is Sha256.