Skip to content
pubscout

biometric_storage

5.0.1, released 3 years ago by codeux.design

Encrypted file store optionally secured by biometric locks for mobile and desktop.

Quiet but busy
$ flutter pub add biometric_storage
Source repository

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.

Works with

Packages commonly used together with biometric_storage: ones it builds on, ones built on it, and its own family.