pyca/cryptography

GitHub: pyca/cryptography

Python 生态的标准加密库,提供从高层配方到底层原语的完整密码学能力。

Stars: 7493 | Forks: 1710

# pyca/cryptography .. image:: https://img.shields.io/pypi/v/cryptography.svg :target: https://pypi.org/project/cryptography/ :alt: 最新版本 .. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest :target: https://cryptography.io :alt: 最新文档 .. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg :target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain ``cryptography`` 是一个为 Python 开发者提供加密方案和原语的包。我们的目标是使其成为您的“加密标准库”。它支持 Python 3.8+ 和 PyPy3 7.3.11+。 ``cryptography`` 包含了高级方案以及针对常见加密算法(如对称加密、消息摘要和密钥派生函数)的低级接口。例如,要使用 ``cryptography`` 的高级对称加密方案进行加密: .. code-block:: pycon ``` >>> 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.' ``` 您可以在 `文档`_ 中找到更多信息。 您可以通过以下方式安装 ``cryptography``: .. code-block:: console ``` $ pip install cryptography ``` 有关完整详情,请参阅 `安装文档`_。 ### 讨论 如果您遇到错误,可以在我们的 `问题追踪器`_ 中提交。 我们维护着一个用于开发讨论的 `cryptography-dev`_ 邮件列表。 您也可以加入 ``irc.libera.chat`` 上的 ``#pyca`` 频道提问或参与讨论。 ### 安全 需要报告安全问题?请查阅我们的 `安全报告`_ 文档。 .. _`文档`: https://cryptography.io/ .. _`安装文档`: https://cryptography.io/en/latest/installation/ .. _`问题追踪器`: https://github.com/pyca/cryptography/issues .. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev .. _`安全报告`: https://cryptography.io/en/latest/security/
标签:DNS 反向解析, Fernet, OpenSSL, pyca, PyPI, SSL/TLS, XML 请求, 加密解密, 可视化界面, 后端开发, 哈希算法, 安全开发, 安全测试工具, 密码学, 对称加密, 开发组件, 手动系统调用, 自动化审计, 逆向工具