Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DB open] will not prompt an error #802

Open
zxkc opened this issue Sep 27, 2020 · 1 comment
Open

[DB open] will not prompt an error #802

zxkc opened this issue Sep 27, 2020 · 1 comment

Comments

@zxkc
Copy link

zxkc commented Sep 27, 2020

use fmdb/sqlcipher to open a database with password, if the password is not set, [DB open] will not prompt an error

@R4N
Copy link
Contributor

R4N commented Oct 2, 2020

Open/key will not immediately throw an error if the key is incorrect. You'll need to perform some operation on the database to test the key -- typically SELECT COUNT(*) FROM sqlite_master;

See this reference from the SQLCipher documentation: https://www.zetetic.net/sqlcipher/sqlcipher-api/#testing-the-key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants