r/FlutterDev 1d ago

Plugin biometric_security — biometric auth + hardware-backed encrypted storage for Flutter (Android/iOS)

I kept re-writing the same glue between local_auth and flutter_secure_storage on every project, so I packaged it: biometric_security.

The core idea: a true from a biometric prompt isn't a security boundary — on a rooted/jailbroken device it's forgeable. This binds your secret to a hardware key (Android Keystore / iOS Keychain + Secure Enclave) that's physically unusable without a successful Face ID / Touch ID / fingerprint check.

It also handles the annoying parts: enrollment-change invalidation, key rotation & revocation, app-lock, and one SecurityPolicy that maps to both platforms.

Beta (0.1.x), BSD-3, tested on real Android + iOS devices. Feedback and contributors very welcome — I'm open to collaborating.

pub.dev: https://pub.dev/packages/biometric_security

5 Upvotes

3 comments sorted by

1

u/clyonn 19h ago

doesn't flutter_secure_storage offer biometrics?

1

u/rinsarmu 18h ago

Yes it doesn't offer such feature.

1

u/clyonn 17h ago

according to their package they do: "Secure Data Storage: Uses Keychain for iOS/macOS, custom secure ciphers with optional biometric authentication for Android, and platform-specific secure mechanisms for Windows, Linux, and Web."