什么是 pycryptodomex,它与 pycryptodome 有何不同?
What is pycryptodomex and how does it differ from pycryptodome?
今天看到PySNMP安装了pycryptodomex。该名称中的 x
看起来可疑且令人惊讶。
我试图追踪它,但看起来两者都 pycryptodome and pycryptodomex are owned by the same account and point back to the same Github repository。
特别是因为加密库是一项核心安全功能,我怀疑重复。
复制的目的是什么?我可以从开源中发现这些信息吗?
代码相同,只是名称不同。
pycryptodome
与 pyCrypto 有一些关联,可以被认为是从 PyCrypto 迁移到 PyCryptodome 时的替代品。
pycryptodomex
是 PyCryptodome 的独立版本,具有不同的命名约定;而不是包 Crypto
,您必须使用 Cryptodome
。如果遗留用途需要 PyCrypto,则应使用 pycryptodome
。
根据 repository:
The installation procedure depends on the package you want the library in. PyCryptodome can be used as:
an almost drop-in replacement for the old PyCrypto library. You install it with:
pip install pycryptodome
In this case, all modules are installed under the Crypto package.
One must avoid having both PyCrypto and PyCryptodome installed at the same time, as they will interfere with each other.
This option is therefore recommended only when you are sure that the whole application is deployed in a virtualenv.
a library independent of the old PyCrypto. You install it with:
pip install pycryptodomex
In this case, all modules are installed under the Cryptodome package. PyCrypto and PyCryptodomex can coexist.
今天看到PySNMP安装了pycryptodomex。该名称中的 x
看起来可疑且令人惊讶。
我试图追踪它,但看起来两者都 pycryptodome and pycryptodomex are owned by the same account and point back to the same Github repository。
特别是因为加密库是一项核心安全功能,我怀疑重复。
复制的目的是什么?我可以从开源中发现这些信息吗?
代码相同,只是名称不同。
pycryptodome
与 pyCrypto 有一些关联,可以被认为是从 PyCrypto 迁移到 PyCryptodome 时的替代品。pycryptodomex
是 PyCryptodome 的独立版本,具有不同的命名约定;而不是包Crypto
,您必须使用Cryptodome
。如果遗留用途需要 PyCrypto,则应使用pycryptodome
。
根据 repository:
The installation procedure depends on the package you want the library in. PyCryptodome can be used as:
an almost drop-in replacement for the old PyCrypto library. You install it with:
pip install pycryptodome
In this case, all modules are installed under the Crypto package.
One must avoid having both PyCrypto and PyCryptodome installed at the same time, as they will interfere with each other.
This option is therefore recommended only when you are sure that the whole application is deployed in a virtualenv.
a library independent of the old PyCrypto. You install it with:
pip install pycryptodomex
In this case, all modules are installed under the Cryptodome package. PyCrypto and PyCryptodomex can coexist.