flutter_secure_storage_x
14.0.2, released 3 weeks ago by koji-1009.com
API to store data securely using native device storage like Keychain and KeyStore.
WASM-ready
What it does
flutter_secure_storage_x provides an API to store data in secure storage on Android, iOS, Windows, Linux, macOS, and Web. It uses Keychain on iOS and KeyStore based solutions on Android.
AI-written summary of version 14.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to store sensitive information like auth tokens or passwords securely on the device.
- You require cross-platform secure key-value storage backed by OS primitives.
Skip it when
- You need built-in biometric authentication wrapped inside the package, which requires custom native implementation.
- You are dealing with extremely large datasets where a SQL or NoSQL database is more appropriate.
Strengths
- Leverages native security primitives like Apple Keychain and Android KeyStore.
- Supports multiple platforms including mobile, desktop, and web.
Weaknesses
- Background access requires explicit configuration for secure storage when the device is locked.
- Breaking changes between major versions require careful migration steps for stored data.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Set minSdk to >= 24 on Android and configure data extraction rules if necessary to prevent backing up secure datastore files.
final storage = FlutterSecureStorage();
String? value = await storage.read(key: key);
await storage.write(key: key, value: value);Alternatives
Packages that do the same job and could replace flutter_secure_storage_x.
- shared_preferences
If you only need non-sensitive key-value persistence without encryption overhead.
97Compare