public Encrypt(Codec sink, byte[] key) { this.sink = sink; _iv = Digest.Md5(key); AesManaged aes = new AesManaged { Mode = CipherMode.ECB }; cipher = aes.CreateEncryptor(_iv, _iv); }
public Encrypt(Codec sink, byte[] key) { this.sink = sink; _iv = Digest.Md5(key); AesManaged aes = new AesManaged { Mode = CipherMode.ECB }; cipher = aes.CreateEncryptor(_iv, _iv); }