Cipher Encryption is working fine but Database files contains no data when downloaded from Android Studio and open with DB browser for SQLite after implementing SQL Cipher in Room Database
val passphrase: ByteArray = net.sqlcipher.database.SQLiteDatabase.getBytes(
AppConstants.DB_KEY.toCharArray()
)
val factory = SupportFactory(passphrase)
val instance = Room.databaseBuilder(
context.applicationContext,
NeDatabase::class.java,
DATABASE_NAME
)
.openHelperFactory(factory)
.fallbackToDestructiveMigration()
.allowMainThreadQueries()
.addMigrations(MIGRATION_5_6, MIGRATION_6_7)
.addCallback(DbApplicationCallback())
.build()
Need To get Database tables and datas after implementing Cipher