EncryptedStoreOptions
Options for encrypted DataStore serializers (EncryptedProtoSerializer and EncryptedPreferencesSerializer).
Associated data (AAD) defaults to
deriveStoreAssociatedData(storeName, schemaVersion)("$storeName|v$schemaVersion") unless associatedData is explicitly provided.legacyAssociatedData enables transparent fallback decryption when migrating AAD bindings.
allowPlaintextRead defaults to false (fail-closed). Opt in only for one-way plaintext migration reads.
Properties
Whether unencrypted payloads without SVBLENC1 magic may be read during migration (defaults to false).
Explicit AEAD associated data override; when null, derived from storeName and schemaVersion.
Optional previous AEAD associated data tried as a fallback during decryption.
Schema version number bound into default AEAD associated data.
Functions
When storeName is still the class default ("default"), adopts name (from StoreLocator).
Returns associatedData if set, or deriveStoreAssociatedData for storeName and schemaVersion.