SecurePrefs

Factory for AES-encrypted SharedPreferences backed by Android Keystore.

Centralizes master-key creation and encryption scheme selection so callers receive preferences whose keys and values are encrypted at rest.

Functions

Link copied to clipboard
fun create(context: Context, name: String): SharedPreferences

Creates or opens an encrypted preferences file with the given name.