예제 #1
0
        public void Load(System.IO.Stream stream)
        {
            using (var reader = new BinaryReader(stream)) {
                byte[] encodedContents = reader.ReadBytes((int)reader.BaseStream.Length);

                AesEncryption.SetKey(AES_KEY);
                AesEncryption.SetIV(AES_IV);
                DecryptedContents = AesEncryption.AesDecrypt(encodedContents);
            }
        }