数据库加密,我这边是直接把sqlcipher的sqlite3.h,sqlite3.c导入工程中做数据库加密的,但是我这里报没有openssl。
不过我看官方给的教程里面没说需要加openSSL的。有知道怎么解决的不?
滿天的星座2017-05-02 09:33:22
Thanks for the callback upstairs, but this is not the case. I have found a solution to this problem myself. Link address: http://www.jianshu.com/p/bd78.... But now I have encountered a problem. How to view the encrypted database? Does anyone know?
世界只因有你2017-05-02 09:33:22
https://github.com/sqlcipher/sqlcipher
Looking at it, the writing is very clearREADME
You need to link against a OpenSSL's libcrypto
The link you need. OpenSSL
的libcrypto
$ ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
LDFLAGS="-lcrypto"
$ make