search

Home  >  Q&A  >  body text

c - iOS,fmdb数据库加密

数据库加密,我这边是直接把sqlcipher的sqlite3.h,sqlite3.c导入工程中做数据库加密的,但是我这里报没有openssl。
不过我看官方给的教程里面没说需要加openSSL的。有知道怎么解决的不?

曾经蜡笔没有小新曾经蜡笔没有小新2757 days ago675

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座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?

    reply
    0
  • 世界只因有你

    世界只因有你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

    . OpenSSLlibcrypto

    Compile example

    $ ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
        LDFLAGS="-lcrypto"
    $ make

    reply
    0
  • Cancelreply