Skip to content
pubscout

simple_secure_storage

0.4.3, released 5 weeks ago by skyost.eu

Secure key‑value storage for Flutter with platform‑specific backends.

WASM-ready
$ flutter pub add simple_secure_storage
Source repository

What it does

Provides encrypted storage on Android, iOS, macOS, Windows, Linux and web. Supports optional caching for faster reads and a unified API across platforms.

AI-written summary of version 0.4.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to store secrets or encryption keys securely on the device
  • You want a single API that works on mobile, desktop and web
  • You prefer a lightweight plugin over a full‑blown database

Skip it when

  • You only need plain, non‑encrypted preferences
  • You require complex relational queries or large data sets

Strengths

  • True platform‑native encryption (Keychain, EncryptedSharedPreferences, wincred, Secret Service)
  • Cross‑platform support including web
  • Built‑in caching for performance

Weaknesses

  • Requires native setup per platform (e.g., Keychain sharing, backup exclusions)
  • Limited to simple key‑value data
  • No built‑in migration or versioning tools

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
6

Add platform‑specific configuration: enable Keychain Sharing on iOS/macOS, disable Auto Backup or add backup rules on Android, ensure Secret Service is running on Linux, no extra steps for web beyond providing password and salt.

await SimpleSecureStorage.initialize();
await SimpleSecureStorage.write('apiKey','12345');
String? key = await SimpleSecureStorage.read('apiKey');

Alternatives

Packages that do the same job and could replace simple_secure_storage.