Setting password in SQLCipher Setting password in SQLCipher sqlite sqlite

Setting password in SQLCipher


For Android, you just need to call openOrCreateDatabase to provide the encryption key. The second parameter is the passphrase that will be used.

SQLiteDatabase database = SQLiteDatabase.openOrCreateDatabase(databaseFile, "test123", null);

The "PRAGMA key" interface provides the same function when using the command line version of SQLCipher.


you should read this: sqlcipher.net/introduction The build instructions should get you a utility which will be the command line shell (based on sqlLite) for SQLCipher.