Skip to main content

Partially Homomorphic Encryption library for Python

Project description

release master develop
Latest released version on PyPi CI status of Master CI status of develop
  Requirements Status of master Requirements Status of develop
  Documentation Status Documentation Status

A library for Partially Homomorphic Encryption in Python.

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 setup.py test

Or use nose:

nosetests

Code History

Developed at Data61.

Parts derived from the Apache licensed Google project: https://code.google.com/p/encrypted-bigquery-client/

No audit

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

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.2.2
Filename, size File type Python version Upload date Hashes
Filename, size phe-1.2.2-py2.py3-none-any.whl (28.6 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size phe-1.2.2.tar.gz (24.9 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