DSA module in Python

北城以北 提交于 2020-01-02 08:11:45

问题


Does anyone know of a pure DSA module in Python for signing messages?


回答1:


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




回答2:


Python Cryptography Toolkit has this module

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




回答3:


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.



来源:https://stackoverflow.com/questions/2729468/dsa-module-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!