Skip to content

Sideni/cryptopals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptopals Challenges

My solutions to the cryptopals challenges.

Set 1

  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

  1. Implement PKCS#7 padding
  2. Implement CBC mode
  3. An ECB/CBC detection oracle
  4. Byte-at-a-time ECB decryption (Simple)
  5. ECB cut-and-paste
  6. Byte-at-a-time ECB decryption (Harder)
  7. PKCS#7 padding validation
  8. CBC bitflipping attack

Set 3

  1. The CBC padding oracle
  2. Implement CTR, the stream cipher mode
  3. Break fixed-nonce CTR mode using substitutions
  4. Break fixed-nonce CTR statistically
    1. Character frequencies in English
  5. Implement the MT19937 Mersenne Twister RNG
  6. Crack an MT19937 seed
  7. Clone an MT19937 RNG from its output
  8. Create the MT19937 stream cipher and break it

Set 4

  1. Break "random access read/write" AES CTR
  2. CTR bitflipping
  3. Recover the key from CBC with IV=Key
  4. Implement SHA-1 keyed MAC
  5. Break a SHA-1 keyed MAC using length extension
  6. Break an MD4 keyed MAC using length extension
  7. Implement and break HMAC-SHA1 with an artificial timing leak
    1. Web application to break
  8. Break HMAC-SHA1 with a slightly less artificial timing leak
    1. Web application to break

Set 5

  1. Implement Diffie-Hellman
  2. Implement a MITM key-fixing attack on Diffie-Hellman with parameter injection
  3. Implement DH with negotiated groups, and break with malicious "g" parameters
  4. Implement Secure Remote Password (SRP)
  5. Break SRP with a zero key
  6. Offline dictionnary attack on simplified SRP
  7. Implement RSA
  8. Implement an E=3 RSA Broadcast attack

Set 6

  1. Implement unpadded message recovery oracle
  2. Bleichenbacher's e=3 RSA Attack
  3. DSA key recovery from nonce
  4. DSA nonce recovery from repeated nonce
  5. DSA parameter tampering
  6. RSA parity oracle
  7. Bleichenbacher's PKCS 1.5 Padding Oracle (Simple Case)
  8. Bleichenbacher's PKCS 1.5 Padding Oracle (Complete Case)

About

Solutions to challenges presented by cryptopals.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages