Pure Python Paillier Homomorphic Cryptosystem

python
crypto

A Paillier homomorphic cryptosystem implemented in pure Python.

Published

June 28, 2011

What

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.

How

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

Where

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

Why

I was bored.


© Copyright 2012-2025 Mike Ivanov