search

Home  >  Q&A  >  body text

iOS, fmdb database encryption

Database encryption. I directly imported sqlite3.h and sqlite3.c of sqlcipher into the project for database encryption, but there is no openssl reported here.
However, I saw that the official tutorial did not say that you need to add openSSL. Anyone know how to solve it?

曾经蜡笔没有小新曾经蜡笔没有小新2813 days ago710

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