/Paillier_Encryption

Implement Chinese and English encryption and decryption by using Paillier

Primary LanguagePython

Paillier_Encryption

Implement Chinese and English encryption and decryption by using Paillier

Introduction

Paillier_cryptosysten

Code

To implement Chinese string encryption and decryption, it is necessary to solve the Chinese transcoding problem:

Chinese---->encode(utf-8)---->encrypt---->decrypt---->decode(utf-8)---->Chinese

First, you should install gmpy2 and libnum

pip install gmpy2
pip install libnum

Ref

Python实现Paillier加密解密算法 - B3ale