public ShutterStockDecoder() { cezarCodec = new CezarCodec(4); frameCodec = new FrameCodec(1); pushCodec = new PushCodec(-3); reverseCodec = new ReverseCodec(); }
private TripAdvisorCoder() { Coder = new PushCodec(3); Coder.AddNextInChain(new FrameCodec(2)) .AddNextInChain(new SwapCodec()) .AddNextInChain(new PushCodec(3)); Decoder = new PushCodec(-3); Decoder.AddNextInChain(new SwapCodec()) .AddNextInChain(new FrameDeCodec(2)) .AddNextInChain(new PushCodec(-3)); }
private ShutterStockCoder() { Decoder = new ReverseCodec(); Decoder.AddNextInChain(new PushCodec(3)) .AddNextInChain(new FrameDeCodec(1)) .AddNextInChain(new CezarCodec(-4)); DecCodec fra = new FrameCodec(1); DecCodec rev = new ReverseCodec(); DecCodec cez = new CezarCodec(4); DecCodec pus = new PushCodec(3); pus.AddNextInChain(rev); fra.AddNextInChain(pus); cez.AddNextInChain(fra); Coder = cez; }
public TripAdvisorDecoder() { pushCodec = new PushCodec(3); frameCodec = new FrameCodec(2); swapCodec = new SwapCodec(); }
public string Decode(string s) { string str = new PushCodec(new FrameCodec(new SwapCodec(new PushCodec(s, -3).Code()).Code(), -2).Code(), -3).Code(); return(str); }