Skip to content

sqlite3_rekey a plaintext database #301

@ndusart

Description

@ndusart

Documentation of sqlite3_rekey says that we can use it to encrypt a database that is not currently encrypted:

/*
** Change the key on an open database.  If the current database is not
** encrypted, this routine will encrypt it.  If pNew==0 or nNew==0, the
** database is decrypted.
**
** The code to implement this API is not available in the public releasejavascript:noop()
** of SQLite.
*/

The documentation of PRAGMA rekey however states that it cannot be used to encrypt a standard sqlite database.

You should either update the documentation of the sqlite3_rekey function or plan to implement that feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions