当前位置: 首页 > 工具软件 > PyCryptodome > 使用案例 >

python库-加解密库PyCryptodome(之前的pycrypto)

乐正宜人
2023-12-01

python库-加解密库PyCryptodome

官方文档:https://www.pycryptodome.org/en/latest/

什么是pycrypto

pycrypto加解密库官方已经不维护了。
官网:https://github.com/pycrypto/pycrypto

PyCrypto 2.x is unmaintained, obsolete, and contains security vulnerabilities.
See https://www.pycrypto.org/ for details. The following is provided for historical/reference purposes only.

pycryptodome pycrypto 这两个库是同一个库,但是 pycrypto 已经不维护了

什么是PyCryptodome

官方文档:https://www.pycryptodome.org/en/latest/
github:https://github.com/Legrandin/pycryptodome

PyCryptodome是python一个强大的加密算法库,可以实现常见的单向加密、对称加密、非对称加密和流加密算法。

安装PyCryptodome

./pip3 uninstall crypto
./pip3 uninstall pycrypto
./pip3 install pycryptodome

demo

官方example

https://www.pycryptodome.org/en/latest/src/examples.html

参考

加密算法简述 以及 pycryptodome模块的使用
参考URL: https://blog.csdn.net/weixin_44797433/article/details/103849182

 类似资料: