setKey

abstract fun setKey(key: ByteArray, size: Int = key.size, database: String = MAIN_DB_NAME)(source)

Sets the database key to use when accessing an encrypted database.

Throws

if an error happened while setting the key.