3 ms·
I have a tattoo of an encryption routine, partly as a protest. Unfortunately I changed it at the last minute to make it look cooler and introduced a bug. Here'
by cestith 5y ago
I have a tattoo of an encryption routine, partly as a protest. Unfortunately I changed it at the last minute to make it look cooler and introduced a bug.
Here's the entire proper Perl 5 code:
undef $/;print<>$<>
The buggy version is slightly shorter but I depended on an incorrect reading of some tricky wording in the docs and didn't test thoroughly enough. I'm considering turning the tattoo into a diff.
I recommend Crypto by Steven Levy as a high-level refresher on the events of the time. (https://www.bookfinder.com/search/?isbn=9780670859504&st=xl&ac=qr https://www.bookfinder.com/search/?isbn=9780670859504&st=xl&...)
- ineedasername 5y agoI'd be afraid that a bug in Perl-- revealed years later-- might render my arm open to compromises. Some new fuzzing method comes around and all of a sudden my arm is unencrypted for all the world to access.