![]() ![]() I downloaded the last version compiled for Android (didn't compile it. ![]() I compiled for Linux with sources from the git.I created it using SQLCipher reading a dump after specifying the key on a Linux machine. I should have specified better the situation maybe. I also tried to use the sqlite3_key function passing the UTF8 string, but the same happens.Īnyone who noticed this or who has a clue of the reason for this? On iPhone simulator everything seems ok. But then "file is encrypted or is not a database". Everything seems correct and again the step functions returns SQLITE_DONE. In SQLCipher sources I see the prepare function for UTF-16 is used, by passing the C-string coming from GetStringChars JNI function. But queries then return "file is encrypted or is not a database". Sqlite3_prepare_v2(db, stream.str().c_str(), -1, &statement, NULL) The problem comes on Android when using a database with a key set. On iOS, the same code seems to work also with encrypted databases. With a database without key, everything seems to be working. Hi! I'm trying to use SQLCipher on Android by using the library directly from C/C++ code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |