title: Anko sqlite library with encrypted library
body: <p>I have a db file which is encrypted and I know the passphrase but I cannot find a way to open with Anko library.</p>
  <p>In Java I use SQL Cypher. Also I tried to replace the Android import with Cypher</p>
  <pre><code>class MyDatabaseOpenHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, &quot;MyDatabase&quot;, null, 1) {
  companion object {
      private var instance: MyDatabaseOpenHelper? = null
  
      @Synchronized
      fun getInstance(ctx: Context): MyDatabaseOpenHelper {
          if (instance == null) {
              instance = MyDatabaseOpenHelper(ctx.getApplicationContext())
          }
          return instance!!
      }
  }
  
  override fun onCreate(db: SQLiteDatabase) {
      // Here you create tables
      db.createTable(&quot;Customer&quot;, true, 
                  &quot;id&quot; to INTEGER + PRIMARY_KEY + UNIQUE,
                  &quot;name&quot; to TEXT,
                  &quot;photo&quot; to BLOB)
  }
  
  override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
      // Here you can upgrade tables, as usual
      db.dropTable(&quot;User&quot;, true)
  }
  }
  
   // Access property for Context
   val Context.database: MyDatabaseOpenHelper
  get() = MyDatabaseOpenHelper.getInstance(getApplicationContext())
  </code></pre>