https://github.com/snowycoder/ntruencryptlib-wrapper
A python wrapper for ntruencryptlib
https://github.com/snowycoder/ntruencryptlib-wrapper
Last synced: 3 months ago
JSON representation
A python wrapper for ntruencryptlib
- Host: GitHub
- URL: https://github.com/snowycoder/ntruencryptlib-wrapper
- Owner: SnowyCoder
- License: mit
- Created: 2018-07-07T13:45:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T05:21:46.000Z (almost 7 years ago)
- Last Synced: 2025-01-11T06:33:54.404Z (4 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
==============================
Python NtruEncrypt Wrapper
==============================|CircleciImage|_ |LicenseImage|_ |PrImage|_
.. |CircleciImage| image:: https://circleci.com/gh/SnowyCoder/ntruencryptlib-wrapper/tree/master.svg?style=shield
.. _CircleciImage: https://circleci.com/gh/SnowyCoder/ntruencryptlib-wrapper/tree/master.. |LicenseImage| image:: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
.. _LicenseImage: https://github.com/SnowyCoder/ntruencryptlib-wrapper/blob/master/LICENSE.md.. |PrImage| image:: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat
.. _PrImage: http://makeapullrequest.com/**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