Exemplo n.º 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);
        }
Exemplo n.º 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);
        }