https://github.com/openmined/paillier.js
A pure javascript implementation of paillier - runnable in browser, node, or react native
https://github.com/openmined/paillier.js
cryptography javascript
Last synced: 6 months ago
JSON representation
A pure javascript implementation of paillier - runnable in browser, node, or react native
- Host: GitHub
- URL: https://github.com/openmined/paillier.js
- Owner: OpenMined
- Created: 2020-03-15T04:28:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:05:35.000Z (about 3 years ago)
- Last Synced: 2025-06-07T00:39:59.618Z (7 months ago)
- Topics: cryptography, javascript
- Language: TypeScript
- Homepage:
- Size: 186 KB
- Stars: 6
- Watchers: 12
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# paillier.js
This is a pure JS implementation of [paillier-bigint](https://github.com/juanelas/paillier-bigint). This version has no dependencies on `bigint` or `worker`, making it suitable for use in React Native or other constrained environments.
**NOTE: The tradeoff of using this library over the bigint is that this library is relatively slow.**
## Installing
Install a [getRandomValues()](https://github.com/LinusU/react-native-get-random-values#readme) polyfill if necessary.
Then install the library
```
npm install paillier-pure
```