Beispiel #1
0
        public byte[] Decrypt(byte[] data)
        {
            if (data.Length != 8)
            {
                throw new Exception("Data size must be 8 bytes");
            }
            ICryptoTransform decryptor = des.CreateWeakDecryptor(mKey, IV);

            return(decryptor.TransformFinalBlock(data, 0, data.Length));
        }