4 ms·
I'm dying to finish these, but I had a ton of fun doing the first few sets. 1.6 was a total eye opener for me, not knowing any real crypto before, I naively tho
by dahart 10y ago
I'm dying to finish these, but I had a ton of fun doing the first few sets. 1.6 was a total eye opener for me, not knowing any real crypto before, I naively thought if I used a long key, repeating key XOR would be a reasonable amount of protection against at least your boss or a few of your smart friends or whatever. Finding out that I could crack it in milliseconds with vanilla Python and that the key length barely matters, that was... educational.
- diyseguy 10y agoMe too. But now I'm stuck on 1.7. All the tricks they taught me aren't working so far. Maybe we are supposed to go off-site and learn how to decrypt AES-128 ECB elsewhere and come back? Perhaps the hint is that they told us how it is encrypted - so, maybe that's the only hint.
- dahart 10y agoHaha. Here's a comment I left in my solution to 1.7: # This one took the longest, and it was just a shell command! # I learned that openssl's documentation is TERRIBLE!!
- diyseguy 10y agoBut they say in the instructions that you are supposed to Code it - "Do this with code." Not to use the OpenSSL. Or at least that's how I read it.
- dahart 10y agoFWIW, I have Python code next to that comment, and I don't have a bash command line that runs OpenSSL there. I don't remember if I did indeed use the command line, or if my comment really was talking about a light wrapper around a library call.
- diyseguy 10y agook, Crypto.Cipher import AES, away we go to 1.8