sapphirine / ntru Goto Github PK
View Code? Open in Web Editor NEWNTRU Python Library with Application to Encrypted Domain
NTRU Python Library with Application to Encrypted Domain
Since Python 2 is going to be deprecated, is it possible to update this repo.
Hi,
Great Job! Simple, but effective code. However, for me is not clear what is your source of entropy? How can you change the source/stream of the entropy.
Thank you.
I am not sure if this is just an issue with the implementation, my conversion to python 3 or the encryption scheme itself but when you encrypt if the message is a 0 it will always either end with a 0 or a 5 and if the message is a 1 it will always end with a 6 or a 1. if you just add this bit of code under
if message == 1:
sum=sum + 1
`it breaks the encryption every time.
print ('Encrypted is:',sum)
if list(str(sum))[len(list(str(sum)))-1] == '6' or list(str(sum))[len(list(str(sum)))-1] == '1':
print ('the message is 1. this was easily cracked')
else:
print ('the message is 0. this was easily cracked')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.