开发者

Fast DES for Python

开发者 https://www.devze.com 2023-03-02 23:43 出处:网络
i am searching for compiled des implementation for python. M2Crypto don\'t work for me with error message \"ImportError: DLL load failed:\". OpenSSLLight installed.

i am searching for compiled des implementation for python. M2Crypto don't work for me with error message "ImportError: DLL load failed:". OpenSSLLight installed.

Edit: ok, fixed with M2Crypto. For some reasons, if you select during the installation of SSLLight that the libraries shou开发者_如何学编程ld be placed in the program directory, they are not recognised by programs. I reinstalled openssllight with placing the libs into windows dir, and now M2Crypto loads.


Pycrypto supports DES/DES3 and has prebuilt Windows installers from Voidspace. Quick example:

from Crypto.Cipher import DES
des = DES.new('13371337', DES.MODE_ECB)
des.encrypt('plaintxt')

'\xeb\x9d\xe7~&\xb4fp'
0

精彩评论

暂无评论...
验证码 换一张
取 消