Beispiel #1
0
        byte[] Decrypt(byte[] buffer, int offset = 0)
        {
            var empty = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 };
            var des   = new DESCrypto(empty, empty);

            return(des.Decrypt(offset == 0 ? buffer : buffer.Sub(offset)));
        }
Beispiel #2
0
        byte[] Encrypt(byte[] buffer)
        {
            var empty = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 };
            var des   = new DESCrypto(empty, empty);

            return(des.Encrypt(buffer));
        }