Im new to sql cipher
and tried the link of sql cipher
demo application.
But when I run the application,it always enters in else
part of following code.
sqlite3_key(sqlite3Database, key, (int)strlen(key));
if (sqlite3_exec(sqlite3Database, (const char*) "SELECT count(*) FROM sqlite_master;", NULL, NULL, NULL) == SQLITE_OK)
{
NSLog(@"Password is correct, or a new database has been initialized");
} else {
NSLog(@"Incorrect password!");
}
I already have a database say sqlDatabase.sql
with me.Now I want to encrypt it but this is not working.
Can anyone help regarding this?