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

Starting new Cordova SQLCipher+Android plugin support #23

Open
brodycj opened this issue Apr 16, 2020 · 1 comment
Open

Starting new Cordova SQLCipher+Android plugin support #23

brodycj opened this issue Apr 16, 2020 · 1 comment
Assignees

Comments

@brodycj
Copy link
Owner

brodycj commented Apr 16, 2020

updated:

An organization has ordered a build of the new Cordova SQLite plugin design (#3) with SQLCipher on Android. An early preview of the progress is available here:

It is actually using JNI/JDK source code from here:

adding reference to sqlcipher/sqlcipher#125 - simpler version for Android

@brodycj brodycj self-assigned this Apr 16, 2020
@brodycj
Copy link
Owner Author

brodycj commented Apr 16, 2020

A general observation of the SQLCipher C library is that if an application opens a database and then uses sqlite3_key() to use a password, SQLCipher will do nothing with the password until the application attempts to read or write data. This can make it a little tricky to test password error handling.

I think a stranger observation is that if an application opens a new database and then uses sqlite3_key() to set the password, the database would have zero size until the application starts writing data. I think this makes the password error testing even more tricky to get right.

P.S. I raised the following discussion: https://discuss.zetetic.net/t/when-password-from-sqlite3-key-is-applied/4339

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

1 participant