Choose the protection the data needs.
Encryption, native storage and integrity checks solve different problems. They’re opt-in, and none turns client-side key-value storage into a server database.
Use a private report.
Send a suspected vulnerability through the repository’s private GitHub advisory route. Keep exploit details out of a public issue.
Encrypt a value
Opt-in AES-GCM uses Web Crypto through the asynchronous API. Configure key handling for your app’s threat model.
Select a device adapter
Capacitor adapters include secure, preferences, SQLite and filesystem storage. Register the adapter you use, run npx cap sync, then verify a read on the device.
Detect accidental corruption
An integrity checksum can detect accidental changes to a stored value.
Open this page