Skip to content

cipher_default_kdf_iter become invaild #118

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

Closed
cczscq opened this issue Jan 10, 2014 · 1 comment
Closed

cipher_default_kdf_iter become invaild #118

cczscq opened this issue Jan 10, 2014 · 1 comment

Comments

@cczscq
Copy link

cczscq commented Jan 10, 2014

Hi Nick Parker:
I have some problem about sqlcipher.
1.How to set the default cipher_default_kdf_iter in your source code?
2.I use SQLiteDatabaseHook to set cipher_default_kdf_iter, After I restart my app some times, it always report "CREATE TABLE android_metadata failed,SQLiteException: file is encrypted or is not a database". My old databases become invaild.
3.I has set cipher_default_kdf_iter to 4000, the method named openOrCreateDatabase spend about 180ms; But when the phone reboot, this method go back to 1800+ms;

I search the problems in google groups,try a lot of methods, none works.
Do you have some better advice?

@cczscq cczscq closed this as completed Jan 10, 2014
@developernotes
Copy link
Member

Hello cczscq,

You can set cipher_default_kdf_iter using a SQLiteDatabaseHook, invoking it via PRAGMA on the preKey function. For questions 2 & 3, are you doing it as I just described? These questions are best placed on the SQLCipher mailing list here.

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