biometric_signature
13.3.0, released 4 weeks ago by visionflutter.com
Hardware‑backed biometric signatures and encryption for Flutter apps.
What it does
Provides cryptographic signing and decryption using keys stored in Secure Enclave, StrongBox or Windows Hello. Supports key attestation, multiple key aliases, and hybrid modes for platforms without native EC support.
AI-written summary of version 13.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need verifiable, replay‑protected biometric authentication
- Your backend must verify a cryptographic proof of identity
- You want hardware‑backed key storage with attestation on Android or Secure Enclave on iOS/macOS
Skip it when
- Only a simple boolean biometric unlock is required
- Targeting platforms without hardware key support (e.g., older Android versions)
- You prefer a lightweight solution without native setup
Strengths
- True hardware‑backed keys with attestation
- Cross‑platform support (Android, iOS, macOS, Windows)
- Hybrid modes allow encryption on platforms lacking native EC keys
- Fine‑grained key policies and alias management
Weaknesses
- Complex native configuration and permissions
- Large API surface; steep learning curve
- Windows implementation limited (no security level reporting)
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add platform‑specific permissions (USE_BIOMETRIC, USE_FINGERPRINT) and Android keystore/StrongBox config; iOS entitlements for Secure Enclave; Windows Hello capability flag. No code‑gen required.
import 'package:biometric_signature/biometric_signature.dart';
Future<void> sign() async {
final result = await BiometricSignature.createSignature(
data: Uint8List.fromList('hello'.codeUnits),
signatureType: SignatureType.ecdsa,
keyAlias: 'login_key',
);
print('Signature: ${result.signatureBase64}');
}Alternatives
Packages that do the same job and could replace biometric_signature.
- local_auth
Provides simple biometric unlock without cryptographic keys
90Compare - passkeys
WebAuthn‑style passwordless auth, but lacks custom encryption APIs
90Compare - firebase_auth
Full auth backend with biometric optional, but not hardware‑backed signatures
99Compare
Works with
Packages commonly used together with biometric_signature: ones it builds on, ones built on it, and its own family.