SnowyCoder / ntruencryptlib-wrapper

A python wrapper for ntruencryptlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python NtruEncrypt Wrapper

CircleciImage_ LicenseImage_ PrImage_

Encrypt your data using NTRU encryption


About:

ntruencrypt is a python module that wraps libntruencrypt in a developer-friendly way.


What is libntruencrypt?:

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.


Install ntruencrypt:

git clone https://github.com/SnowyCoder/ntruencryptlib-wrapper
cd ntruencryptlib-wrapper
python3 setup.py install

System Requirements:

  • Linux or Mac (for now)
  • Autotools and compilation tools
  • Python3

Basic Usage Example

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

About

A python wrapper for ntruencryptlib

License:MIT License


Languages

Language:Python 96.6%Language:Shell 3.4%