biometric_storage
5.0.1, released 3 years ago by codeux.design
Encrypted file store optionally secured by biometric locks for mobile and desktop.
What it does
It provides a hardware-encrypted file store for small amounts of data like passwords and secret keys. On supported platforms, access to the store can be secured using biometric authentication (such as fingerprint or face recognition).
AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to store small sensitive data like passwords or tokens securely on the device.
- You want optional biometric authentication protecting the stored data.
Skip it when
- You need to store massive amounts of data.
- You need secure, encrypted storage on the web platform (web uses unencrypted localStorage).
Strengths
- Hardware-encrypted storage backing using native APIs like KeyStore on Android and KeyChain on iOS/MacOS.
- Supports multiple platforms including Android, iOS, MacOS, Windows, Linux, and web.
Weaknesses
- Web implementation uses unauthenticated and unencrypted localStorage.
- Requires manual native configuration steps on Android, iOS, and MacOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Android requires API level >= 23, updating Kotlin, making MainActivity extend FlutterFragmentActivity, and setting AppCompat themes. iOS and MacOS require adding NSFaceIDUsageDescription to Info.plist.
final store = BiometricStorage().getStorage('mystorage');
final data = await storageFile.read();
await storageFile.write('Hello World');Alternatives
Packages that do the same job and could replace biometric_storage.
- flutter_secure_storage
If you need a more standard key-value secure storage solution across platforms.
93Compare
Works with
Packages commonly used together with biometric_storage: ones it builds on, ones built on it, and its own family.
- ffibiometric_storage depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- loggingbiometric_storage depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- win32biometric_storage depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- plugin_platform_interfacebiometric_storage depends on itReusable base class for platform interfaces of Flutter federated plugins.