This repository is mainly used to help solve AIVD Christmas puzzles.
But it also demonstrates many of the old cryptographic formulae.
- Docker
- Python 3.8+
from the project root:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Make sure to always activate the virtual env with
source venv/bin/activate
before using the command line in the project
make
is used to build the docker images.
To make the crypto image you first need to build the base image with all the dependencies.
to get help on how to use the build system just type make
without any parameters
This image only needs to be build if it is not yet there or if you added a new requirement (dependency)
make crypto-base
Contains the crypto tools
make crypto
Follow the instructions given by make
.
docker run -d --rm -p 8080:8080 ivonet/crypto
or run:
build-run.sh
every time you want to rebuild just press ctrl-c once and twice to quit
Be sure to install the crypto-base/requirements.txt
in your environment and all should work fine.
pip3 install -r ./crypto-base/requirements.txt
You can see all the endpoints by running the application and going to the swagger page.