⚠️ NOTE: This code is part of my initial attempt to document and share my journey through the Cryptopals Crypto Challenges. The focus is on understanding and learning the concepts, not on providing optimised or production-ready solutions.
This repository contains Python scripts for solving the Cryptopals challenges. Each challenge is in its own file, organised by set. The goal of this project is to not only solve the challenges but also to provide clear, documented solutions for anyone following along.
- Clone the Repository
First, clone the repository from GitHub:
git clone [email protected]:IsaacCavallaro/cryptopals-crypto-challenges.git
- Set Up a Virtual Environment
python3 -m venv venv
source venv/bin/activate # On macOS/Linux
Each challenge script is located in the src/set_{x}/
directory and can be run individually. Here's how you can run them:
- Activate the Virtual Environment Before running any script, ensure your virtual environment is activated:
source venv/bin/activate # On macOS/Linux
- Run a challenge script For example, to run challenge one:
python src/set_one/challenge_one.py
- Assuming you are in the root directory of the project:
pytest src/set_{x}/tests/{x}.py