https://github.com/pyca/cryptography
https://cryptography.io/en/latest/ 在线文档
pip install cryptography
>>> from cryptography.fernet import Fernet
>>> # Put this somewhere safe!
>>> key = Fernet.generate_key()
>>> f = Fernet(key)
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
>>> token
b'...'
>>> f.decrypt(token)
b'A really secret message. Not for prying eyes.'
https://github.com/1MansiS/JavaCrypto docker易部署,curl api访问的,java加密库