ntru | NTRU Python Library with Application to Encrypted Domain | Cryptography library
kandi X-RAY | ntru Summary
kandi X-RAY | ntru Summary
An important problem in data analytics is how to collect user data and make it available for analysis without compromising user privacy. A recommended solution is to encrypt data using ring homomorphism methods which allows analysis to be performed on encrypted data, allowing the analyst to perform analytics on the data without knowing the individual private data elements used in the analysis. Previous research showed that the existing NTRU encryption system could be modified to provide just this level of functionality, but open source tools do not currently exist to support NTRU on Python. Our project is the creation of a python library of functions which implement the algorithms necessary for an NTRU. We have built a python package which provides an implementation of NTRU Encryption System. To ensure accuracy of the encryption and decryption we required to know polynomials with high accuracy. Since existing polynomial libraries such as the one provided by the Numpy Python Package has coefficients as floats, we could not employ them. Therefore, we implemented a fresh polynomial package which allows us to perform operations on polynomial with rational coefficients(using fraction datatype Python).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Extracts the intersection of a polygon .
- Runs the test steps .
- Divide product of two polynomials .
- r Check if f is a ternary operator .
- Fraction function
- Return the Euclidean distance .
- trim a sequence
- ensemble a polynomial .
- Multiply two polynomials .
- Calculate the modular inverse of a matrix .
ntru Key Features
ntru Examples and Code Snippets
Community Discussions
Trending Discussions on ntru
QUESTION
I am trying to make a real time chat system. I am sending messages and saving them to the database. But before saving the message into database i need to encrypt it with using NTRU for Integers algorithm. In order to use this algorithm i have to convert text into numbers. I already tried to convert to ASCII code but its creating too big number for algorithm. Is there any way to convert text into small numbers? Saving into database with parent.send_message(chat_input.value)
ANSWER
Answered 2021-Feb-04 at 13:21I was able to solve my problem with this code
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ntru
You can use ntru like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page