public void SetEncryptionData(byte[] key, byte[] IV) { algorithm.KeySize = encryptionKeySize; algorithm.Padding = PaddingMode.PKCS7; algorithm.Mode = CipherMode.CBC; algorithm.Key = key; algorithm.IV = IV; }