CreateCrypto Method
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Digest
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
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
algorithmDigestCryptoAlgorithmThe DigestCryptoAlgorithm that defines the cryptographic implementation. Default is Sha256.