Skip to content

Tutorial and walkthrough for some common crypto challenge topics.

Notifications You must be signed in to change notification settings

wry-run/ctf-crypto-notes

Repository files navigation

capture-the-flag tutorials

Training material for capture-the-flag cryptographic challenges - see ctftime.org - provided as jupyter notebooks.

There are several cryptography libraries, with varying degrees of user-friendliness and capabilities - see for instance this crypto API comparison. I like pycryptodome and cryptography.

Running notebooks in the cloud

You can use Binder or Azure Notebooks - see this introduction - to clone this github repo to your projects.

Setup and run on a local linux machine

Tested on linux mint 20, with jupyterthemes.

python3 -m pip install --user --upgrade pip
python3 -m pip install --user --upgrade virtualenv
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade wheel 
python3 -m pip install --upgrade -r requirements.txt
jt -t monokai
jupyter notebook

Additionally, for gmpy2 and pyecm you will probably need libmpc-, libmpfr-, and libgmp-dev, which you can install (credit: monolune) with

sed 's/#.*//' requirements-gmpy2.txt | xargs sudo apt-get install -y
wget https://raw.githubusercontent.com/martingkelly/pyecm/master/pyecm.py

About

Tutorial and walkthrough for some common crypto challenge topics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published