/matasano-crypto

:key: Cracking real-world Crypto, the fun way

Primary LanguagePython

Matasano Crypto Challenges Solutions

The guys over at Matasano have made a set of 48 challenges (split over 6 sets) that show attacks on real-world crypto. Sets 7 and 8 were added later, btw, by them.

This repository contains solutions to the challenges (as well as the challenge statements), as and when I solve them.

I had started another repository earlier, but a whole bunch of that code is badly written, and I decided to start over from scratch.

Challenges and Solutions

  1. Basics
  2. Block crypto
  3. Block & stream crypto
  4. Stream crypto and randomness

Each of the sets contain solutions in the #.py files (Python 2.7), as well as the questions in the README.md of the appropriate directory. You can jump to a solution by clicking on the heading of any of the challenges.

Additionally the sets each have a common.py file, which contains code that is re-used in that set. Different sets can have extremely different common.py files, and need not be subset/superset of each other.

License

All code in this repository is covered under the MIT License.

The questions are taken from cryptopals.com. No infringement is intended.