当前位置:   article > 正文

sqlcipher的一些问题

sqlcipher的一些问题

1、sqlcipher的常用命令

参考链接:SQLCipher文档(未完待续)_太阳别落下啊的博客-CSDN博客_sqlcipher

2、sqlcipher3.x 升级至4.x

PRAGMA key = 'VI5PuP0m374Sd4J9';
PRAGMA cipher_page_size = 1024;
PRAGMA kdf_iter = 64000;
PRAGMA cipher_hmac_algorithm = HMAC_SHA1;
PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA1;
ATTACH DATABASE 'sqlcipher-4.db' AS sqlcipher4 KEY 'VI5PuP0m374Sd4J9';
SELECT sqlcipher_export('sqlcipher4');
DETACH DATABASE sqlcipher4;
select * from encrypt_file_table;

参考链接:SQLCipher API - Zetetic

3、sqlcipher编译

./configure --enable-tempstore=yes --enable-fts5 CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="/build/opt/local/lib/libcrypto.a" --prefix=/build/opt/local/

make

make install

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/492390
推荐阅读
相关标签
  

闽ICP备14008679号