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

            if (str == swapCodec.Encode(cezarCodec.Encode(reverseCodec.Encode(frameCodec.Encode(decoded)))))
            {
                return(decoded);
            }
            return(null);
        }
Пример #2
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);
        }