انجمن سایت کلیدستان


رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
قفل گذاری دیتابیس اندروید ازطریق SQL Cipher

قفل گذاری دیتابیس اندروید ازطریق SQL Cipher

#1
با سلام.برای قفل گذاری دیتابیس اندروید از طریق SQL Cipher به نقل از لینک زیر:
http://stackoverflow.com/questions/17671...or-android
تا مرحله 4 موفق شدم وتمام لایبرری های آن را اضافه کردم ولی مرحله 5 (آخرش) را متوجه نشدم.چی میگه: 
  • These must first be added to your project (within the libs folder.) Refer here to get these:http://sqlcipher.net/sqlcipher-for-android/
  • Secondly you need to add the icudt4dl.zip file to your assets folder, this Zip comes with the SQL Cipher libraries.
  • Right click your project, go to properties then Java build path then include libraries such as commons-codec.jar, guava-r09.jar, sqlcipher.jar. Once this is done, do a build clean.
  • Then within your App, instead of importing android.database.sqlite, you will import import net.sqlcipher.database
  • Change any code which interacts with the DB, example:SQLiteDatabase.loadLibs(context);String dbPath = this.getDatabasePath("dbname.db").getPath();SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbPath,"dbPassword", null);
 
 
پاسخ


پیام‌های این موضوع
قفل گذاری دیتابیس اندروید ازطریق SQL Cipher - توسط kama90 - ۱۳۹۴/۰۷/۱۰, ۱۲:۳۴ ب.ظ

پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان