【问题标题】:How to use the Windows CryptoAPI from Python?如何在 Python 中使用 Windows CryptoAPI?
【发布时间】:2013-05-23 15:41:31
【问题描述】:

我正在考虑使用 Python 中的 Windows CryptoAPI,但我找不到任何现有模块 - 作为 win32all 套件的一部分的 win32crypt 模块仅公开了几个无用的高级函数对我来说。

是否存在封装 CryptoAPI 的现有模块?搜索 PyPi 已经找到了 zip。如果无法从 ctypes、cython 等调用 API 的示例代码将很有用。

【问题讨论】:

  • 您需要/想要哪些 cryptoapi?
  • @Woot4Moo:我需要它来创建密钥并使用低级 API 加密数据块 - CryptGenKey、CryptEncrypt、CryptDecrypt 等。还用于找出每一端支持的算法。

标签: python windows cryptoapi


【解决方案1】:

这个: How can I use a DLL file from Python? + 从 Crypt32.dll 获取你需要的函数的地址应该可以工作。

【讨论】:

    猜你喜欢
    • 2012-04-05
    • 1970-01-01
    • 1970-01-01
    • 2015-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    相关资源
    最近更新 更多