Class CryptHelper
- Namespace
- SunamoCrypt
- Assembly
- SunamoCrypt.dll
Cryptographic helper for encryption and decryption operations
public class CryptHelper
- Inheritance
-
CryptHelper
- Inherited Members
- Extension Methods
Constructors
CryptHelper(Provider, List<byte>, List<byte>, string)
Initializes a new instance of the CryptHelper class
public CryptHelper(Provider provider, List<byte> salt, List<byte> initializationVector, string passphrase)
Parameters
providerProviderEncryption provider to use
saltList<byte>Salt value for encryption
initializationVectorList<byte>Initialization vector
passphrasestringPassphrase for encryption
Methods
ApplyCryptData(ICrypt, ICrypt)
Copies cryptographic data from one instance to another
public static void ApplyCryptData(ICrypt to, ICrypt from)
Parameters
Decrypt(List<byte>)
Decrypts the specified data
public List<byte> Decrypt(List<byte> data)
Parameters
Returns
Encrypt(List<byte>)
Encrypts the specified data
public List<byte> Encrypt(List<byte> data)