MFC应用程序中的加密加密方式抛出“无法加载本机模块Crypto.Cipher._raw_ecb”

时间:2018-11-21 06:06:13

标签: python python-2.7 encryption mfc pycryptodome

我有一个MFC应用程序。有一个用于加密跟踪文件的python模块。 我正在使用python 2.7配置来构建MFC应用程序。

我正在尝试使用

从MFC应用程序加载python模块
  

PyImport_ImportModule

包含以下代码。

import os
import base64
from Crypto.Cipher import AES

#Get Crypto Version
def GetCryptoVersion():
    import Crypto
    return Crypto.__version__

../ site-packages 文件夹中,有一个 Crypto 模块,其中包含所有必需的加密模块。但是在VS2015中使用python 2.7配置运行MFC应用程序时,出现了以下异常。

enter image description here

我尝试使用不同版本的 pycrypto pycryptodome pycryptodomex 。但是我无法解决该错误。注意:我还安装了python 2.4。谁能帮助我解决问题?

0 个答案:

没有答案