Recommended Python cryptographic module?

后端 未结 8 1180
余生分开走
余生分开走 2020-12-13 00:50

I\'ve been exploring what cryptographic modules are available to Python, and I\'ve found 3: ezPyCrypt, yawPyCrypt and KeyCzar (which actually supports a few languages, but P

8条回答
  •  旧时难觅i
    2020-12-13 01:24

    I've just done such a survey last week and adopted M2Crypto that seems to be the most advanced wrapper today above openssl (found it in several recommandation lists while googling). I also tried pycrypto but it miss certificates management and standard key file format management that M2Crypto has (with pycrypto you have to pickle/unpicle your keys or write your own key manager for common formats).

    I found M2Crypto was quite easy to use and was quicly able to develop what I needed (a signed and encrypted package format).

    However I recommand to download full package, not just easy installing it, because in the package you also get nice exemples (look at demo directory).

    Here is the link http://pypi.python.org/pypi/M2Crypto/0.20.1

    A drawback could be that you are using python 3.0, I'm stuck with 2.5 at job (hopefully 2.6 soon) and don't know if M2Crypto works with python 3.0

    I've not much practice with it yet, put if you have specific problems with it just ask here. Someone may answer.

提交回复
热议问题