gopaillier

module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT

README

GoDoc Go Report Card test license

GoPaillier

Extended version of a Paillier cryptosystem implementation in Go.

Features

  • Extended Paillier cryptosystem implementation with negative number support (read more here).
  • Uses Standard Form notation to encode numbers allowing to use Paillier encryption scheme over integer and floating points numbers (read more about number package here).
  • Allows four different operations:
    • Addition between encrypted and plain numbers: A' + B.
    • subtraction between encrypted and plain numbers: A' + (-B).
    • Multiplication between encrypted and plain numbers: A' * B.
    • Division between encrypted and plain numbers: A' * 1/B.
Installation
go get github.com/lucasmenendez/gopaillier@latest
Examples

There are three basic examples ready to help starting with the library:

Directories

Path Synopsis
examples
sdk
pkg
number
Package number provide a common representation of integers and floating point numbers uting big.Int's.
Package number provide a common representation of integers and floating point numbers uting big.Int's.
paillier
Package paillier is the Go implementation of the Paillier Cryptosysmem described by Pascal Paillier in 1999.
Package paillier is the Go implementation of the Paillier Cryptosysmem described by Pascal Paillier in 1999.
sdk
Package SDK allows to interact with paillier package easily, allowing to use floating point and integer numbers with it, and supporting more operations such as subtraction and division over encrypted numbers.
Package SDK allows to interact with paillier package easily, allowing to use floating point and integer numbers with it, and supporting more operations such as subtraction and division over encrypted numbers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL