-
Notifications
You must be signed in to change notification settings - Fork 569
Error in Encrypting existing sqlite plain database! #85
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
Comments
In the first issue, sqlcipher_export literally exports data to the attached database. Thus, foodDatabase would not be encrypted, the encrypted database would be demo.db. You'd then need to close all database handles and rename demo.db. With regard to the second issue, you need to specifically build a sqlcipher command line package, then call is with the explicit path to the binary. The command you are using now would use the system installed sqlite3 binary, which does not have the sqlcipher extension. See here for further information: https://groups.google.com/group/sqlcipher/msg/059748cfb8d41c77 |
Hi Stephen ... I am using http://sqlcipher.net/sqlcipher-api/ to try and encrypt my database... but i get the export error. i am using the sqlite crypt software. any suggestions??? |
@JayNirgudkar are you literally using sqlite-crypt (i.e. http://sqlite-crypt.com/)? If so, this is not compatible with SQLCipher, it is a completely different software package. |
On 2014-02-11 1:31 am, Stephen Lombardo wrote:
Hi, http://retroshare.sourceforge.net/wiki/index.php/Win32CompileLibrariesMingw. Thank you. |
I am using this code
//source
unEncrypted = getDatabasePath("FoodDatabase.db");
encrypted = getDatabasePath("demo.db");
SQLiteDatabase vgpdb = SQLiteDatabase.openOrCreateDatabase(
unEncrypted, "", null);
vgpdb.rawExecSQL(String.format(
"ATTACH DATABASE '%s' AS encrypted KEY '%s'",
encrypted.getAbsolutePath(), "test123"));
vgpdb.rawExecSQL("SELECT sqlcipher_export('encrypted');");
vgpdb.execSQL("DETACH DATABASE encrypted;");
vgpdb.close();
//source
but not able to encrypte foodDatabase.db
please suggest me what am i doing wrong?
and if i uses command line then
sqlite3 FoodDatabase.db
sqlite>attach database 'food_en.db' as encrypted key 'test';
sqlite>select sqlcipher_export('encrypted');
ERROR : NO SUCH FUNCTION sqlcipher_export
here it creates food_en.db but with no contents with in it ; size 0kb
please suggest me what am doing wrong ? thank in advance.
The text was updated successfully, but these errors were encountered: