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