flutter_secure_storage_plus
Enhanced secure storage with biometric unlock and key rotation.
Supports:
- Android
- iOS
- Web (including WASM)
- Windows
- macOS
- Linux
Features
- Biometric-gated read/write operations (Face ID/Touch ID, Android Biometrics)
- Transparent key rotation helpers
- Secure storage using platform best practices (Keychain/Keystore/Credential Storage)
- Web fallback with WASM-friendly APIs
WASM Compatibility
This package is compatible with Dart WASM. You can use it in Flutter web projects compiled to WASM. See the example for usage.
Installation
Add to your pubspec.yaml
:
dependencies:
flutter_secure_storage_plus: ^0.0.4
Usage
import 'package:flutter_secure_storage_plus/flutter_secure_storage_plus.dart';
final storage = FlutterSecureStoragePlus();
Future<void> example() async {
await storage.write(key: 'token', value: 'abc', requireBiometrics: true);
final token = await storage.read(key: 'token', requireBiometrics: true);
print(token);
}
API surface is evolving; see examples and docs as features land.
Roadmap
- Biometric unlock across platforms
- Key rotation helpers
- Migrations from popular secure storage packages
License
MIT