AndroidDatabaseEncryptionKeyProvider

Android SDK-managed database key provider.

The raw SQLCipher key is generated per wallet database, encrypted with an Android Keystore AES key, and stored in app-private SharedPreferences.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open suspend override fun deleteKey(walletId: String, databaseName: String)

Removes the stored encrypted database key and its Android Keystore wrapping key.

Link copied to clipboard
open suspend override fun getOrCreateKey(walletId: String, databaseName: String): DatabaseEncryptionKey

Returns the existing Android-protected database key or creates and stores a new one.