Python 对 PEM 的支持在哪里? RSA + DES3?
我需要一个支持 PEM 文件以及 RSA 签名和 DES3 加密的 Python 库。 pycrypto 似乎不支持 PEM,并且其加载现有密钥的机制未记录且神秘。奇怪的是,m2crypto 似乎不支持 DES/DES3。
我一直在运行 openssl 子进程,但我宁愿有一些内置的并且最好是快速的。这存在吗?
(如果做不到这一点,我犹豫是否要问,但是是否有足够高级的 C api 可用于此目的,以便我可以编写一个特殊用途的扩展而无需自杀/引入漏洞?)
I need a Python library that supports PEM files and both RSA signing and DES3 encryption. pycrypto doesn't seem to support PEM, and its mechanism for loading existing keys is undocumented and cryptic. m2crypto doesn't seem to support DES/DES3, oddly.
I've been running an openssl subprocess, but I'd rather have something built in and preferably fast. Does this exist?
(Failing that, I hesitate to ask, but are there high-level enough C apis available for this that I could write a special-purpose extension without killing myself/introducing vulns?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看本概述中提到的库:Python 加密模块的比较
Check out the libraries mentioned in this overview: Comparison of Python cryptography modules