2 releases

new 0.1.1 Apr 15, 2025
0.1.0 Nov 24, 2023

#1580 in Cryptography

Download history 24/week @ 2024-12-26 133/week @ 2025-01-02 293/week @ 2025-01-09 241/week @ 2025-01-16 208/week @ 2025-01-23 109/week @ 2025-01-30 145/week @ 2025-02-06 81/week @ 2025-02-13 113/week @ 2025-02-20 161/week @ 2025-02-27 62/week @ 2025-03-06 53/week @ 2025-03-13 47/week @ 2025-03-20 106/week @ 2025-03-27 31/week @ 2025-04-03 127/week @ 2025-04-10

315 downloads per month
Used in 2 crates (via paillier-zk)

MIT/Apache and LGPL-3.0+

33KB
612 lines

License Docs Crates io Discord

Optimized Paillier encryption scheme

Library implements Paillier encryption scheme with optimization such as:

  • Faster encryption and homomorphic operations via Chinese Remainder Theorem when the private key is known
  • Faster secret key generation (a.k.a faster safe primes generation)

Built on top of rug big integers library (which is based on GMP).

Join us in Discord!

Feel free to reach out to us in Discord!

Dependencies

~21MB
~502K SLoC