【问题标题】:Generating SHA-256 hash in Python 2.4 using M2Crypto使用 M2Crypto 在 Python 2.4 中生成 SHA-256 哈希
【发布时间】:2011-04-18 13:17:33
【问题描述】:

是否可以使用 M2Crypto 生成 SHA-256 哈希? Python 2.4 的 SHA 模块不支持 256,所以我开始使用 PyCrypto,结果发现 PyCrypto 不支持 PKCS#5(在我的项目的其他地方需要。)结果我切换到 M2Crypto,现在我会喜欢用等效的 M2Crypto 替换我的 PyCrypto SHA-256 调用...我尝试查看单元测试,但什么也没看到。

【问题讨论】:

    标签: python hash cryptography m2crypto sha256


    【解决方案1】:

    您可以下载 Python 2.5 的 hashlib 模块(支持 SHA256)for usage on older Pythons(例如 Python 2.4)。

    【讨论】:

      猜你喜欢
      • 2017-09-20
      • 1970-01-01
      • 2014-08-19
      • 2011-03-22
      • 1970-01-01
      • 2023-03-18
      • 2021-10-29
      • 2013-01-09
      • 1970-01-01
      相关资源
      最近更新 更多