Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What RC4 key value will completely invert $S$ after the initial permutation, so that $S[0] = 255, S[1] = 254, …, S[254] = 1, S[255] = 0$?

share|improve this question
I'll only give hints on this apparent homework. A) If you could achieve your goal with a key of k bytes, with what other key lengths and keys could you achieve the same goal? Now choose a k that you won't regret. B) Each round swaps S[i] and S[j]; what latitude do you have on deciding indexes i and j? C) Pick and place according to your target S[], whatever that is. – fgrieu Feb 25 '14 at 11:36
In case you're wondering why no one is stepping up to give you the answer, well, the whole point of homework is for you to learn. If someone would just give you the answer, well, that might mean that you can hand in your homework, but you won't learn from it. – poncho Mar 3 '14 at 22:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.