Pure Python Paillier Homomorphic Cryptosystem

python crypto

A Paillier homomorphic cryptosystem implemented in pure Python.


This is a very basic Paillier Homomorphic Cryptosystem implemented in pure Python.

The idea is, in short, to encrypt two numbers, perform an “add” operation on cyphertexts, decrypt the result and find it to be the sum of the original plaintext numbers.


The code is loosely based on the thep project and a few ActiveState recipes. The code is pure Python and all objects are serializable.


Here: https://github.com/mikeivanov/paillier


I was bored.