/ormlite-sqlcipher

Patched OrmLite Android library which encrypts persistent data transparently with SQLCipher

Primary LanguageJava

ormlite-sqlcipher

Patched OrmLite Android library with SQLCipher

Installation

allprojects {  
    repositories {  
        jcenter()    
    }  
}
dependencies {  
    compile 'com.j256.ormlite.cipher:ormlite-sqlcipher:1.4@aar'
    compile 'com.j256.ormlite:ormlite-core:5.1'
    compile 'com.j256.ormlite:ormlite-android:5.1'
    compile 'net.zetetic:android-database-sqlcipher:4.0.1@aar'
} 

Usage

  1. Init sqlcipher.
  2. Use in imports com.j256.ormlite.cipher.android imports instead of com.j256.ormlite.android
  3. Use in imports net.sqlcipher.database imports instead of android.database
  4. If you need OrmLiteSqliteOpenHelper override getPassword method