Hacker News new | ask | show | jobs
by CodesInChaos 3128 days ago
The xor swap failure when working on the same variable has been nicely exploited in the underhanded C contest: http://www.underhanded-c.org/_page_id_16.html

> The XOR-swap trick is an example of coders being too clever for their own good. Here, it gradually poisons the RC4 permutation with zeroes, until eventually the plaintext is just passed along in the clear.

1 comments

Ha! Those are always good reads. Thanks.