Modules
Small secrets (tokens, API keys) kept in the platform's secure store.
The off-phone backend (development, tests): one 0600 file per key in a 0700
directory, config :mob_secure_store, :dir or else
Path.join(Mob.data_dir(), "mob_secure_store").
The phone's backend: the :mob_secure_store_nif NIF, linked into the app by
the native build. EncryptedSharedPreferences under an Android Keystore
master key on Android, the Keychain on iOS.
On-device proof (mix mob.selftest) that the secure store works in this
build: a value round-trips through the NIF into the Keychain or
EncryptedSharedPreferences and is deleted again.
The phone's backend when the app was built without the NIF: refuses everything, so secrets are never written anywhere less safe.