cryptography 是一个 Python 开发人员使用的加密工具包

Tooha1年前 ⋅ 1991 阅读

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加密库

全部评论: 0

    相关推荐