Table of Contents

CreateCrypto Method

Definition

Namespace
Cuemon.Security.Cryptography
Assemblies
Cuemon.Security.Cryptography.dll
Source
src/Cuemon.Security.Cryptography/UnkeyedHashFactory.cs

CreateCrypto(UnkeyedCryptoAlgorithm, Action<ConvertibleOptions>)

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

public static Hash CreateCrypto(UnkeyedCryptoAlgorithm algorithm = UnkeyedCryptoAlgorithm.Sha256, Action<ConvertibleOptions> setup = null)

Parameters

algorithm UnkeyedCryptoAlgorithm

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

setup Action<ConvertibleOptions>

The ConvertibleOptions which may be configured.

Returns

Hash

A Hash implementation of the by parameter specified algorithm.