public CryptParametersTest() { CryptoServiceProviderOptions = new CryptoServiceProviderOptions() { CipherMode = System.Security.Cryptography.CipherMode.CBC, EncryptionAlgorithm = EncryptionAlgorithm.TripleDes, InitializationVector = new byte[] { 24, 164, 24, 145, 19, 159, 235, 249, }, Key = new byte[] { 170, 178, 52, 231, 240, 148, 177, 89, 92, 122, 132, 24, 20, 198, 15, 180, 137, 23, 146, 167, 12, 95, 206, 12 } }; }
public CryptParameters(byte[] data, CryptoServiceProviderOptions options) { _cryptoService = new CryptoService(options); _dataForEncrypt = data; }
public CryptParameters(CryptoServiceProviderOptions options) { _values[_createdOn_Key] = DateTime.UtcNow.ToString(); _cryptoService = new CryptoService(options); }