Пример #1
0
        public string Decode(string str)
        {
            string decoded = pushCodec.Decode(frameCodec.Decode(swapCodec.Decode(pushCodec.Decode(str))));

            if (str == pushCodec.Encode(swapCodec.Encode(frameCodec.Encode(pushCodec.Encode(decoded)))))
            {
                return(decoded);
            }
            return(null);
        }
Пример #2
0
        public string Decode(string str)
        {
            string decoded = cezarCodec.Decode(frameCodec.Decode(pushCodec.Decode(reverseCodec.Decode(str))));

            if (str == reverseCodec.Encode(pushCodec.Encode(frameCodec.Encode(cezarCodec.Encode(decoded)))))
            {
                return(decoded);
            }
            return(null);
        }