Solutions to the crypto challenge: http://cryptopals.com/
The solutions require pycrypto. I had to install this manually using python setup.py install
inside a virtualenv.
- 1. Convert hex to base64
- 2. Fixed XOR
- 3. Single-byte XOR cipher
- 4. Detect single-character XOR
- 5. Implement repeating-key XOR
- 6. Break repeating-key XOR
- 7. AES in ECB mode
- 8. Detect AES in ECB mode
- 9. Implement PKCS#7 padding
- 10. Implement CBC mode
- 11. An ECB/CBC detection oracle
- 12. Byte-at-a-time ECB decryption (Simple)
- 13. ECB cut-and-paste
- 14. Byte-at-a-time ECB decryption (Harder)
- 15. PKCS#7 padding validation
- 16. CBC bitflipping attacks