GitHub - cpach/cryptopals-python3: Python 3 solutions to the Matasano Crypto Challenges
MATASANO CRYPTO CHALLENGES These are my (Carl Winbäck’s) solutions to the Matasano Crypto Challenges. My solutions are written in Python 3. ATTENTION: Before you look at this code I urge you to first try solving the challenges yourself. They are very fun and you’ll learn more that way. More info about the challenges can be found at the official web site: http://cryptopals.com/ COMPLETED CHALLENGES ☑ 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 LICENSE BSD (See the COPYING file) DEPENDENCIES PyCryptodome [https://www.pycryptodome.org/] and pytest [http://pytest.org/] for the unit tests. MY CONTACT INFORMATION WWW: https://www.tunnel53.net/ E-mail: c (at) tunnel53 (dot) net