SecureVault
A small, coroutine-first façade over the platform's native secure storage:
Android — EncryptedSharedPreferences backed by an Android Keystore master key (AES-256 GCM for values, AES-256 SIV for keys).
iOS — Keychain Services (
kSecClassGenericPassword).
Instances are obtained from SecureVaultFactory and are safe to share across coroutines. All suspending functions are I/O bound and dispatch onto an appropriate background dispatcher; callers do not need to switch contexts.
Every method that interacts with the backend declares VaultException; callers should treat any other Throwable as a programming error.
Since
0.1.0
Types
Functions
Returns a cold Flow that emits the current key set and then re-emits a fresh snapshot whenever the set changes (write of a new key, remove, or clear).