createEncryptedPreferencesDataStore
fun createEncryptedPreferencesDataStore(storage: Storage<Preferences>, migrations: List<DataMigration<Preferences>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null, registry: StoreRegistry? = null): DataStore<Preferences>
Encrypted Preferences PrefsDataStore over caller-supplied storage.
Ensure CryptoRuntime is Ready before use (REQ-STO-05).
fun createEncryptedPreferencesDataStore(cipher: Cipher, locator: StoreLocator, options: EncryptedStoreOptions = EncryptedStoreOptions(), migrations: List<DataMigration<Preferences>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null, registry: StoreRegistry? = null): DataStore<Preferences>
Canonical encrypted Preferences factory. Prefer PrefsStoreLocator.Platform from commonMain (Okio on file targets, localStorage on JS/Wasm). Path must end with .preferences_pb when resolved to file.
fun createEncryptedPreferencesDataStore(cipher: Cipher, producePath: () -> Path, options: EncryptedStoreOptions = EncryptedStoreOptions(), migrations: List<DataMigration<Preferences>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null, registry: StoreRegistry? = null): DataStore<Preferences>
Okio Preferences path factory (encrypted). Requires a .preferences_pb suffix.