开发者

DSA module in Python

Does anyone know o开发者_Python百科f a pure DSA module in Python for signing messages?


If OpenSSL has the functionality you are looking for, try pyOpenSSL.


Python Cryptography Toolkit has this module

Chilkat (this may be a pure module check with chilkat - commercially licensed )


Unfortunately, you might have to use a wrapper to some non-Python implementation, like pyOpenSSL. I'm not aware of any pure Python crypto library that is secure.

In particular, pycrypto is a piece of crap. E.g., if you use DSA as proposed here by the author then the attack described in the paper "The Insecurity of the Digital Signature Algorithm with partially known nonces" by Nguyen and Shparlinski can be used to find the secret key very very fast. Note, that this paper has been presented in 2002, but pycrypto is still susceptible to it. Python is a really nice an friendly language for prototyping, but when it comes to defending against adversaries, it is a little too friendly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜