845 B
845 B
To compile the python encryption layer
linux:
pre:
sudo apt update && sudo apt install python3 python3-pip -y
please create a venv, install numpy & nuitka inside using the pip binary it provide; python3 -m venv env && ./env/bin/pip install nuitka numpy
compile cmd: ./env/bin/python3 -m nuitka shamirs_secret_sharing.py --module --output-dir=dll_dist --mingw64 --include-package=numpy
windows:
can globally install nuitka & numpy using python -m pip install numpy nuitka
compile cmd: python -m nuitka shamirs_secret_sharing.py --module --output-dir=dll_dist --mingw64 --include-package=numpy
To compile the bridge
windows:
$ gcc -shared py_bridge.c -o shamir_bridge.dll -Iinclude -Llibs -lpython312
linux:
$ gcc -shared -fPIC py_bridge-lin.c -o shamir_bridge.so $(python3.11-config --includes --ldflags)