Encrypt your data using NTRU encryption
ntruencrypt is a python module that wraps libntruencrypt in a developer-friendly way.
libtruencrypt is the main implementation of the NTRU encryption algorithm.
The NTRU Encryption algorithm is a lattice-based asymmetric encryption algorithm though for the post-quantum encryption.
git clone https://github.com/SnowyCoder/ntruencryptlib-wrapper
cd ntruencryptlib-wrapper
python3 setup.py install
- Linux or Mac (for now)
- Autotools and compilation tools
- Python3
import ntruencrypt
key_pair = ntruencrypt.create_keys()
pub_key, prv_key = key_pair
# Encrypt some data
encrypted_data = pub_key.encrypt(b"Example Data")
# And decrypt it
decrypted_data = prv_key.decrypt(encrypted_data)
print(decrypted_data)
You can find more examples in the tests