## Paillier Cryptosystem ![CI](https://github.com/AlexiaChen/paillier-rs/workflows/CI/badge.svg?branch=master) ![crates.io](https://github.com/AlexiaChen/paillier-rs/workflows/Release/badge.svg?branch=release) [![Crates.io](https://img.shields.io/crates/v/paillier-rs)](https://crates.io/crates/paillier-rs) Just an implementation of [Paillier Cryptosystem](https://en.wikipedia.org/wiki/Paillier_cryptosystem) written in Rust. ## Build & Test ```bash cargo build cargo test ``` ## Why For research purpose. And the encryption of the Paillier algorithm supports the properties of homomorphic addition and scalar multiplication ## Production Ready? No, Its only for educational & research purpose. The code has not undergone any security audit ## Usage Please see unit tests in [`lib.rs`](./src/lib.rs) ## Paillier vs. RSA https://crypto.stackexchange.com/questions/57766/paillier-vs-rsa ## References - Pascal Paillier. [Public-Key Cryptosystems Based on Composite Degree Residuosity Classes](https://link.springer.com/content/pdf/10.1007/3-540-48910-X_16.pdf)