Flutter biometric authentication and secure MQTT IoT bridge. Verify users with platform biometrics, generate cryptographic tokens, and trigger trusted device actions with hardware-level security.
Bridge layer for biometric IoT devices and developer integrations.
biometric_iot_bridge is a Flutter plugin that connects device biometrics with secure token generation and IoT device signaling.
It allows Flutter apps to securely:
- Verify users using fingerprint / face / device credentials
- Generate cryptographically secure tokens
- Send trusted commands to IoT devices via MQTT
This package is designed for security-sensitive, device-aware, and remote-control workflows.
| Feature | Description |
|---|---|
| β Biometric Auth | Native platform APIs (fingerprint, face, device pin) |
| β Secure Tokens | Cryptographic hashing β no raw biometric storage |
| β MQTT Signaling | Publish tokens to IoT topics via MQTT |
| β Flutter-First | Clean, minimal Dart API |
| β Multi-Platform | Android, iOS, Windows, macOS |
βββββββββββββββββββββββββ
β Flutter App β
β (Dart / UI Layer) β
ββββββββββββ¬βββββββββββββ
β
β verifyBiometrics()
βΌ
βββββββββββββββββββββββββ
β local_auth Plugin β
β (Platform Biometrics) β
ββββββββββββ¬βββββββββββββ
β Success / Failure
βΌ
βββββββββββββββββββββββββ
β Token Generation β
β (SHA-256 via crypto) β
ββββββββββββ¬βββββββββββββ
β
β sendRemoteSignal()
βΌ
βββββββββββββββββββββββββ
β MQTT Client β
β (mqtt_client) β
ββββββββββββ¬βββββββββββββ
β
βΌ
βββββββββββββββββββββββββ
β IoT / Backend β
β (Broker / Device) β
βββββββββββββββββββββββββ
Add to your pubspec.yaml:
dependencies:
biometric_iot_bridge: ^0.1.4Then fetch packages:
flutter pub getAdd to android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>Add to ios/Runner/Info.plist:
<key>NSFaceIDUsageDescription</key>
<string>This app uses Face ID / Touch ID to verify your identity.</string>No additional setup required. Uses native device authentication APIs.
import 'package:biometric_iot_bridge/biometric_iot_bridge.dart';final bridge = BiometricIotBridge();final authenticated = await bridge.verifyBiometrics();
if (!authenticated) {
print("Authentication failed");
return;
}final token = bridge.generateSecureToken("my_secret_key");await bridge.sendRemoteSignal("iot/unlock", token);final bridge = BiometricIotBridge();
final authenticated = await bridge.verifyBiometrics();
if (!authenticated) return;
final token = bridge.generateSecureToken("your_secret_key");
await bridge.sendRemoteSignal("iot/device/action", token);This package follows a non-invasive security model:
- Uses platform-native biometric APIs β no raw biometric data accessed
- Does NOT store fingerprint / face data
- Cryptographic token generation via SHA-256
- Designed for trust signaling, not identity storage
β οΈ Important: Always validate tokens server-side or device-side.
biometric_iot_bridge assumes:
Trusted Components
- OS biometric subsystem
- Secure enclave / TEE (when available)
- MQTT transport security (developer responsibility)
Out of Scope
- Broker compromise
- Replay attacks without nonce/expiry
- Secret key management
Recommended Hardening
- Use TLS MQTT (port 8883)
- Add token expiry / nonce
- Rotate secrets periodically
- Validate topic permissions
- Smart locks / physical access systems
- IoT device authorization
- Hardware-bound trust flows
- Secure remote triggers
- Multi-factor security pipelines
| Platform | Status |
|---|---|
| Android | β Supported |
| iOS | β Supported |
| Windows | β Supported |
| macOS | β Supported |
Future<bool> verifyBiometrics()Triggers platform biometric authentication.
String generateSecureToken(String secret)Returns SHA-256 hash token.
Future<void> sendRemoteSignal(String topic, String token)Publishes token to MQTT topic.
| Package | Purpose |
|---|---|
| local_auth | Biometric authentication |
| crypto | Secure hashing |
| mqtt_client | MQTT communication |
- Predictable API behaviour
- Minimal abstraction
- Security-aware defaults
- Broker-agnostic design
This package follows pub.dev best practices:
- β Platform setup documented
- β Example usage provided
- β Null-safe Dart
- β Lints enabled
- β License included
- β Repository metadata defined
PRs and improvements welcome.
Repository: https://github.com/SEOSiri-Official/biometric_iot_bridge
MIT License. See LICENSE.
Developed & maintained by:
Momenul Ahmad SEOSiri β https://www.seosiri.com
If this package is useful:
- β Star the GitHub repository
- π Like on pub.dev
- π Report issues