by tptacek · 13y ago · 0 comments
RC4 has long been considered problematic, but until very recently there was no known way to exploit the weaknesses.
... is especially amusing once you learn how to exploit the flaw in RC4 he's talking about. It's among the simplest, most blatant crypto algorithm flaws ever published. It's also very old; it was known at approximately the same time as RC4's first publication on the Internet.
Quick version: RC4 has biases in the key stream it generates. This means that for a given offset, certain bytes are more likely to appear than others. How do you exploit this? Collect a large sample of the same plaintext encrypted under different key streams. Examine the biases apparent in your samples and compare them to the actual key stream biases. You should be able to infer the actual plaintext byte.