CreateCrypto Method
Definition
- Namespace
- Cuemon.Security.Cryptography
- Assemblies
- Cuemon.Security.Cryptography.dll
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
algorithmUnkeyedCryptoAlgorithmThe UnkeyedCryptoAlgorithm that defines the cryptographic implementation. Default is Sha256.
setupAction<ConvertibleOptions>The ConvertibleOptions which may be configured.