flutter_secure_storage_plus 0.1.0
flutter_secure_storage_plus: ^0.1.0 copied to clipboard
Enhanced secure storage with biometric unlock and key rotation.
Unreleased #
0.1.0 - 2025-11-04 #
Added #
- Biometric authentication support - Full biometric protection for read/write operations:
- iOS/macOS: Face ID and Touch ID integration using LocalAuthentication framework
- Android: Fingerprint and biometric prompt using BiometricPrompt API
- Added
requireBiometricsparameter towrite()andread()methods - Biometric-protected items are stored separately with enhanced security
- Key rotation helpers - Transparent encryption key rotation:
- Added
rotateKeys()method to re-encrypt all stored values with new keys - Supports both regular and biometric-protected storage
- Returns count of rotated items
- Implemented on all platforms (Android, iOS, macOS, Web)
- Added
- Enhanced example app with comprehensive biometric and key rotation testing UI
- Added comprehensive library and API documentation to achieve 160/160 pana score
Changed #
- Android: Updated MainActivity in example app to use
FlutterFragmentActivityfor biometric support - Android: Added
androidx.biometricandandroidx.fragmentdependencies - Improved error handling for biometric authentication failures
- All code formatted to match Dart formatter standards
Fixed #
- Fixed Android compilation errors related to biometric authentication
- Fixed activity context handling for biometric prompts
- Resolved static analysis issues for pub.dev publication
Documentation #
- Added library-level documentation with usage examples
- Added constructor documentation for all public classes
- Improved API documentation coverage to 80%+
0.0.5 TBD #
Security #
- CRITICAL: Fixed security vulnerability - replaced insecure storage implementations with proper secure storage:
- Android: Now uses
EncryptedSharedPreferences(AES-256 encryption) instead of plainSharedPreferences - iOS: Now uses Keychain Services instead of
UserDefaults(encrypted keychain storage) - macOS: Now uses Keychain Services instead of
UserDefaults(encrypted keychain storage) - Web: Now uses
localStorageinstead of in-memory Map (persistent storage)
- Android: Now uses
- Added
androidx.security:security-cryptodependency for Android encryption - All platforms now properly encrypt data at rest
Documentation #
- Added example GIF to README demonstrating plugin usage
Note: Data stored with previous versions will not be accessible after upgrading. Users will need to re-write their data with the new secure storage implementation.
0.0.4 #
Changed #
- pubspec.yaml cleaned for pub.dev and pana compliance
- No breaking changes, just metadata and publishing fixes