sqlite3_rekey

actual fun sqlite3_rekey(db: sqlite3, key: ByteArray, nKey: Int): SqliteResultCode(source)

sqlite3_rekey() change the database encryption key.

sqlite3_rekey() is used to change the key for the main database.

Changing the key includes encrypting the database for the first time, decrypting the database (if pKey == NULL or nKey == 0), as well as re-encrypting it with a new key. The return value is SQLITE_OK on success, or a non-zero SQLite3 error code on failure.

expect fun sqlite3_rekey(db: sqlite3, key: ByteArray, nKey: Int): SqliteResultCode(source)

sqlite3_rekey() change the database encryption key.

sqlite3_rekey() is used to change the key for the main database.

Changing the key includes encrypting the database for the first time, decrypting the database (if pKey == NULL or nKey == 0), as well as re-encrypting it with a new key. The return value is SQLITE_OK on success, or a non-zero SQLite3 error code on failure.

actual fun sqlite3_rekey(db: sqlite3, key: ByteArray, nKey: Int): SqliteResultCode(source)

sqlite3_rekey() change the database encryption key.

sqlite3_rekey() is used to change the key for the main database.

Changing the key includes encrypting the database for the first time, decrypting the database (if pKey == NULL or nKey == 0), as well as re-encrypting it with a new key. The return value is SQLITE_OK on success, or a non-zero SQLite3 error code on failure.

actual fun sqlite3_rekey(db: sqlite3, key: ByteArray, nKey: Int): SqliteResultCode(source)

sqlite3_rekey() change the database encryption key.

sqlite3_rekey() is used to change the key for the main database.

Changing the key includes encrypting the database for the first time, decrypting the database (if pKey == NULL or nKey == 0), as well as re-encrypting it with a new key. The return value is SQLITE_OK on success, or a non-zero SQLite3 error code on failure.

actual fun sqlite3_rekey(db: sqlite3, key: ByteArray, nKey: Int): SqliteResultCode(source)

sqlite3_rekey() change the database encryption key.

sqlite3_rekey() is used to change the key for the main database.

Changing the key includes encrypting the database for the first time, decrypting the database (if pKey == NULL or nKey == 0), as well as re-encrypting it with a new key. The return value is SQLITE_OK on success, or a non-zero SQLite3 error code on failure.