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.
You can use or - see this introduction - to clone this github repo to your projects.
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