sqlcipher-for-android-v3.2.0,anroid 数据库加密码,亲测可以用。
SQLiteDatabase.loadLibs(this); //
MySqliteOpenHelper mySqliteOpenHelper=new MySqliteOpenHelper(DiagnosticsA3_Activity.this, "test.db", null, 3);
db = mySqliteOpenHelper.getWritableDatabase("test");//这个参数test是密码
ContentValues contentValues=new ContentValues();
contentValues.put("userName","test");
contentValues.put("password","passowrd");
db.insert("user",null,contentValues);
1