问题标签 [pysqlcipher]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 导入错误未定义符号 EVP_MD_size
我的项目需要帮助。目前正在关注本教程https://charlesleifer.com/blog/encrypted-sqlite-databases-with-python-and-sqlcipher/
在从 python 连接到加密的 ddatabase 部分下,我的树莓派遇到了这个问题,即;
ImportError: /home/pi/.local/lib/python3.7/site-packages/pysqlcipher3/_sqlite3.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: EVP_MD_size
我不知道出了什么问题。这是整行代码和错误;
python - windows上pysqlcipher3中的问题
我是 sqlcipher 新手,我想从 python 脚本访问 sqlcipher 数据库。为此,我需要在我的 Windows 计算机上安装 pysqlcipher3,但是当我这样做时:
我明白了:
它说无法同时构建 pysqlcipher3 并成功安装了 pysqlcipher3,我对此感到困惑..
当我尝试从 python shell 访问 pysqlcipher3 时,我说:
我用python3.8试过了。我认为是这样的问题:install pysqlcipher3 windows but I didn't succeed to resolve the problem
有人可以帮助我吗?
python - 通过 Python 更正 SQLCipher 的原始/十六进制密钥格式
我正在尝试将一些代码从 C# 迁移到 Python(在 Windows 上),它读取使用 SQLCipher 加密的 SQLite 数据库,并且在 Python 中打开数据库时遇到了麻烦。这让我想知道它是否与我的 PRAGMA KEY 指令的格式有关(因为没有 PRAGMA KEY 的相同代码可以打开未加密的数据库),在执行和尝试查询数据库时我得到一个异常,指出“文件不是一个数据库”,我在 C# 下看到很多错误的键(尽管 SQLite 浏览器中的相同键确实按预期工作)。
从https://github.com/rigglemania/pysqlcipher3/借用我的 Python 包装器并使用来自https://sqlitebrowser.org的二进制文件(以及使用该工具来验证原始密钥是否正确),我知道我需要使用 PRAGMA key 命令来指定密钥,经过一些阅读和一些随机尝试后,尝试了一些(完整的 64 字符密钥,显示基本格式):
所有的结果都是一样的,同样的“文件不是数据库”异常,或者偶尔会出现键的语法错误。
归结起来,代码或多或少是这样的:
我有什么明显的遗漏吗?