-
Notifications
You must be signed in to change notification settings - Fork 55
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
Question: Is there a way to check if a database has been encrypted in sqleet? #47
Comments
I think this is a possibility, but I didn't verify this yet myself:
(See the README.md) As such you should be able to check the first 16 bytes of the database and see if it either contains the salt value or if it contains the default header string? (See also: https://www.sqlite.org/fileformat.html for the default value of the header string) |
How i can compile this with last version of sqlite3? |
Simply execute "select count() from sqlite_master" or other simple query that is guaranteed to succeed; If the database is encrypted the statement will fail. |
This way I could ask for a password if one is needed to open the database.
The text was updated successfully, but these errors were encountered: