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.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether unencrypted payloads without SVBLENC1 magic may be read during migration (defaults to false).

Link copied to clipboard

Explicit AEAD associated data override; when null, derived from storeName and schemaVersion.

Link copied to clipboard

Optional previous AEAD associated data tried as a fallback during decryption.

Link copied to clipboard

Schema version number bound into default AEAD associated data.

Link copied to clipboard

Logical store identifier used to derive default AEAD associated data.

Functions

Link copied to clipboard

When storeName is still the class default ("default"), adopts name (from StoreLocator).