# mob_secure_store v0.1.0 - API Reference

## Modules

- [MobSecureStore](MobSecureStore.md): Small secrets (tokens, API keys) kept in the platform's secure store.
- [MobSecureStore.File](MobSecureStore.File.md): 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")`.
- [MobSecureStore.Native](MobSecureStore.Native.md): 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.
- [MobSecureStore.SelfTest](MobSecureStore.SelfTest.md): 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.

- [MobSecureStore.Unavailable](MobSecureStore.Unavailable.md): The phone's backend when the app was built without the NIF: refuses
everything, so secrets are never written anywhere less safe.

