IPhone: create a SQLite database to protect passwords

I can create a sqlite database using the firefox addon and use the database on iPhone. Now I want to provide a password for the database and use it in my iPhone application. I tried a lot on google to look for the correct way to create a password protected database, but all the same to no avail.

Does anyone have an idea how to create a password protected sqlite database and how we can use it on iPhone

+3
source share
2 answers

Try SQLiteEncrypt. The SQLiteEncrypt is the AES encryption engine built into SQLite so you can encrypt and decrypt the SQLite database file. When you set a password key in a database file, the contents are no longer stored in clear text, so we achieve the goal of data protection.

But it is not free.

Note: But this is not for iOS (thanks Brad for pointing this out).

* Editing ***

For iPhone, you can use SQLCIPHER , which is a complete open source database encoding for sqlite.

+2
source

, . , sqlite. , SQLite , , / SQLite, .

0

Source: https://habr.com/ru/post/1782983/


All Articles