Skip to main content

Partially Homomorphic Encryption library for Python

Project description

python-paillier Latest released version on PyPi

CI Status

Documentation Status

Requirements Status of master

A Python 3 library implementing the Paillier Partially Homomorphic Encryption.

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.


python-paillier is designed, developed and supported by CSIRO’s Data61. If you use any part of this library in your research, please cite it using the following BibTex entry:

  author = {CSIRO's Data61},
  title = {Python Paillier Library},
  year = {2013},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\url{}},

Running unit tests

python test

Or use nose:


Code History

Developed at Data61 | CSIRO.

Parts derived from the Apache licensed Google project:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phe-1.5.0.tar.gz (51.3 kB view hashes)

Uploaded Source

Built Distribution

phe-1.5.0-py2.py3-none-any.whl (53.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page