Skip to content

Add dedicated SQLCipherDecryptionException #76

Closed
@commonsguy

Description

@commonsguy

Right now, trying to decrypt with an invalid passphrase results in a generic SQLiteException, making it difficult to distinguish between a bad passphase and some other type of error. We'd have to read into the text of the exception itself, which is not especially reliable.

Ideally, the "file is encrypted or is not a database" scenario would throw a dedicated exception that we could catch and handle differently. For example, a SQLCipherDecryptionException subclass of SQLiteException would keep all existing client code unaffected, while allowing us to distinguish the bad-passphrase scenario better.

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