Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 669 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 669 Bytes

Cryptopals Crypto Challenges

These are my attempts to solve the Cryptopals challenges using PHP.

Crypto Challenge Set 1: Basics

  • Convert hex to base64
  • Fixed XOR
  • Single-byte XOR cipher
  • Detect single-character XOR
  • Implement repeating-key XOR
  • Break repeating-key XOR
  • AES in ECB mode
  • Detect AES in ECB mode

Crypto Challenge Set 2: Block Crypto

  • Implement PKCS#7 padding
  • Implement CBC mode
  • An ECB/CBC detection oracle
  • Byte-at-a-time ECB decryption (Simple)
  • ECB cut-and-paste
  • Byte-at-a-time ECB decryption (Harder)
  • PKCS#7 padding validation
  • CBC bitflipping attacks