Skip to content

Partially Homomorphic Encryption library for Java

License

Notifications You must be signed in to change notification settings

shine813/PHE-Maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHE-Maven


Background

The Paillier encryption system is a probabilistic public key encryption system invented by Paillier in 1999. Difficult problems based on composite residual classes. The encryption algorithm is a homomorphic encryption, which satisfies the homomorphism of addition and multiplication.

Based on phe library (Paillier Homomorphic Encryption) using Java:

  • generate key pair with 128, 256, 512, 1024, 2048, 3072 and 4096 key length
  • encrypt int, long, float and double type number
  • ciphertext addition (could be plaintext)
  • ciphertext subtract (could be plaintext)
  • ciphertext and plaintext multiplication
  • ciphertext and plaintext division

Environment

  • JDK15
  • Maven3

Package in branches/mvn-repo.

Maven in

<dependencies>
    <dependency>
        <groupId>cn.shine</groupId>
        <artifactId>PHE-Maven</artifactId>
        <version>1.0.0</version>
    </dependency>
</dependencies>

<repositories>
    <repository>
        <id>PHE-Maven</id>
        <url>https://raw.github.com/shine813/PHE-Maven/mvn-repo/</url>
    </repository>
</repositories>

See pom.xml


Example

See src/main/java/cn/shine/APP.java.


Contact

Author: Shenyang Aerospace University-DSPC Zhan Shi

Github: https://github.com/shine813/

Email: phe.zshi@gmail.com

If you have any questions, please contact the author in time.

About

Partially Homomorphic Encryption library for Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published