A library for Partially Homomorphic Encryption in Python
Python
Switch branches/tags
Clone or download
Pull request Compare This branch is 1 commit ahead, 100 commits behind n1analytics:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
examples
phe
third_party
.gitignore
.travis.yml
CHANGELOG.rst
LICENSE.txt
README.rst
requirements.txt
setup.cfg
setup.py Add more prominent note regarding number encoding to docs Feb 8, 2017

README.rst

python-paillier Latest released version on PyPi

CI status of Master
Documentation Status
coverageM
Requirements Status of master

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 | CSIRO.

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.