Interface IAlgorithmProvider
- Namespace
- The.Security.Cryptography
- Assembly
- Instagile.dll
Factory for platform-specific cryptographic algorithms.
public interface IAlgorithmProvider
Methods
CreateCipher()
Initialise a block-cipher algorithm with a generated key.
ISymmetricAlgorithm CreateCipher()
Returns
CreateCipherAsync(byte[])
Initialise a block-cipher algorithm with a supplied key.
Task<ISymmetricAlgorithm> CreateCipherAsync(byte[] material)
Parameters
materialbyte[]
Returns
CreateCipherAsync(string, byte[])
Initialise a block-cipher algorithm with a supplied password (from which a key will be derived).
Task<ISymmetricAlgorithm> CreateCipherAsync(string password, byte[] salt)