mhe / jspaillier Goto Github PK
View Code? Open in Web Editor NEWJavascript proof-of-concept implementation of the Paillier cryptosystem
Home Page: http://mhe.github.io/jspaillier/
License: MIT License
Javascript proof-of-concept implementation of the Paillier cryptosystem
Home Page: http://mhe.github.io/jspaillier/
License: MIT License
The implementation still seems to have issues where two of the inputs are negative numbers. You can reproduce it by specifying A
and B
or A
and C
as negative.
Please update your jsbn to the most recent version (v1.4). The version you are using suffers from incompatible use of DV in the jsbn code.
You can reproduce the bug by providing either A
or B
as a negative number in the demo page. In Firebug, you'll see the error message ReferenceError: DV is not defined
in jsbn.js (line 121).
Does your code include the improvement mentioned by Wikipedia?
Paillier and Pointcheval however went on to propose an improved cryptosystem that incorporates the combined hashing of message m with random r. Similar in intent to the Cramer-Shoup cryptosystem, the hashing prevents an attacker, given only c, from being able to change m in a meaningful way. Through this adaptation the improved scheme can be shown to be IND-CCA2 secure in the random oracle model.
The result of encrypting 2 + -4, during decryption, will instead be the sum of the public key and the negative integer total.
Can this be used on strings/objects and other non number types or does that not even make sense?
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.