Closed
Description
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
Labels
No labels