Skip to content

tml/Matasano-Crypto-Challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matasano Crypto Challenges

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.

Set 1: Basics

  • 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

Set 2: Block crypto

  • 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

Releases

No releases published

Packages

No packages published

Languages