Skip to content

nenf/crypto-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaf42 Crypto Challenges Solutions

The guys over at NRNU MEPHI have made a set of some challenges that show attacks on real-world crypto. This repository contains solutions to the challenges, as and when I solve them.

All the solutions in this repository have been written in Python 2.7.

Install modules:

For install requirements modules run pip like:

$ sudo pip install -r modules.txt

Solutions:

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. PKCS#7 padding validation
  3. Implement CBC mode
  4. An ECB/CBC detection oracle
  5. Byte-at-a-time ECB decryption (Simple)
  6. ECB cut-and-paste
  7. Byte-at-a-time ECB decryption (Harder)

set 5:

  1. Implement FCSR generator
  2. Frequency Test within a Block

set 6:

  1. Fermat's factorization method
  2. Wiener's attack
  3. RSA cycle attack
  4. RSA simple factorization

About

Crypto Challenges Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published