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.
python3 setup.py test
Parts derived from the Apache licensed Google project: https://code.google.com/p/encrypted-bigquery-client/
This code has neither been written nor vetted by any sort of crypto expert. The crypto parts are mercifully short, however.