homomorphicjs
v1.1.2
Published
Paillier Encryption for Javascript
Downloads
8
Readme
paillier.js
A pure javascript implementation of python-paillier.
Currently relies on jsbn and the crypto module.
What is done?
- [x] Generate paillier keypairs
- [ ] Raw encryption of integers
- [x] Raw encryption of small integers (less than 2^16)
- [x] Deal with encrypting large numbers (see shortcut)
- [x] Raw decryption of ciphertext strings into integers
- [ ] Encoded Number
- [ ] Full test coverage
- [ ] Port of python-paillier's raw encryption tests
- [ ] Port of python-paillier's encoded number tests
- [ ] Port of python-paillier's encrypted number tests
- [ ] Port of python-paillier's keyring tests
- [ ] in-browser tests (crypto-browserify may come in handy)
Paillier Cryptosystem
The homomorphic properties of the paillier crypto system are:
- Encrypted numbers can be multiplied by a non encrypted scalar.
- Encrypted numbers can be added together.
- Encrypted numbers can be added to non encrypted scalars.