1、python3的PyCryptodome库用于密码学,属于对PyCrypto库的扩展
Linux上安装:
pip install pycryptodome
Windows上安装:
pip install pycryptodomex
from Cryptodome.PublicKey import RSA
import Cryptodome.Signature.PKCS1_v1_5 as sign_PKCS1_v1_5 # 用于签名/验签
from Cryptodome.Cipher import PKCS1_v1_5 # 用于加密
from Cryptodome import Random
from Cryptodome import Hash