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); }
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); }