Skip to content

About

A Julia implementation of the Paillier partially homomorphic encryption system

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

85 Commits

Folders and files

Repository files navigation

Paillier.jl is a Julia package implementing the basics of the Paillier partially homomorphic cryptosystem.

Build Status

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.

Warning - Here be dragons.

This is rough! Don't use for anything serious yet! Not reviewed by a cryptographer.

Constant time functions have not been used, so this could be susceptible to timing side channel attacks.

We don't obfuscate the results of encrypted math operations by default. This is an optimization copied from python-paillier, however after any homomorphic operation - before sharing an EncryptedNumber or EncryptedArray you must call obfuscate() to secure the ciphertext. Ideally this will occur behind the scenes at serialization time, but this library does not help with serialization (yet).

Based off the sketch written by Morten Dahl at Snips, and the python-paillier library written by CSIRO's Data61 as part of N1 Analytics.

About

A Julia implementation of the Paillier partially homomorphic encryption system

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages