在使用 sqlcipher 解密微信 db 时, 出错
1 | sqlcipher error file is not a database |
原因是 sqlcipher 的版本和 加密的微信 db 版本不兼容
因为 我通过 brew install sqlcipher 安装的是 最新的 v4.0.0
解决方案是 安装 v3.x.x 版本的, 于是通过源代码的方式生成
步骤如下:
1 | git clone https://github.com/sqlcipher/sqlcipher |
然后设置 sqlcipher alias
因为我使用的是 zsh,
所以执行如下步骤:
1 | 在 ~/.zshrc 中添加如下内容,其中 /Users/wangming/Desktop/sqlcipher 为 git clone 之后的路径 |