Skip to main content

Partially Homomorphic Encryption library for Python

Project description

python-paillier |release|

| |travisM| |
| |rtdM| |
| |reqM| |

A Python 3 library for 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.

Running unit tests


python test

Or use nose::


Code History

Developed at `Data61 | CSIRO <>`_.

Parts derived from the Apache licensed Google project:

No audit

This code has neither been written nor vetted by any sort of crypto
expert. The crypto parts are mercifully short, however.

.. |release| image::
:alt: Latest released version on PyPi

.. |travisM| image::
:alt: CI status of Master

.. |reqM| image::
:alt: Requirements Status of master

.. |rtdM| image::
:alt: Documentation Status

Project details

Download files

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

Files for phe, version 1.4.0rc1
Filename, size File type Python version Upload date Hashes
Filename, size phe-1.4.0rc1.tar.gz (34.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page