पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.2

biometricx

अपने फ्लटर ऐप में जैविक पहचान का उपयोग करने का आसान तरीका।

Android
30-दिन डाउनलोड
145
लाइक
36
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add biometricx

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

BiometricX एक Flutter पैकेज है जो Android ऐप्स में बायोमेट्रिक प्रमाणीकरण (जैसे फिंगरप्रिंट या चेहरा पहचान) के एकीकरण को सरल बनाता है। यह उपलब्धता की जाँच करने और डिवाइस-लेवल बायोमेट्रिक्स का उपयोग करके उपयोगकर्ताओं को सुरक्षित रूप से प्रमाणीकरण करने के लिए एक सीधा API प्रदान करता है। उपयोग में आसान डिज़ाइन के साथ, यह जटिल प्लेटफॉर्म-विशिष्ट कार्यान्वयन को छिपाता है, जिससे विकासकर्ता कम कोड के साथ सुरक्षित प्रमाणीकरण कार्यान्वयन कर सकते हैं। यह पैकेज केवल Android के लिए समर्थित है और विश्वसनीय प्रदर्शन और सुरक्षा के लिए मूल बायोमेट्रिक API का उपयोग करता है।

उपयोग

  • सुरक्षित ऐप लॉगिन
  • उपयोगकर्ता पहचान सत्यापन
  • सुरक्षित डेटा पहुंच
  • सत्र पुनर्प्रमाणीकरण
  • द्विकारक प्रमाणीकरण

मुख्य विशेषताएँ

  • जैविक जाँच के लिए सरल API
  • Android-केवल समर्थन
  • सुरक्षित जैविक पहचान प्रमाणीकरण
  • स्वचालित फॉलबैक संभाल
  • आवश्यक सेटअप न्यूनतम

इनके लिए उपयुक्त

  • सुरक्षित उपयोगकर्ता प्रमाणीकरण की आवश्यकता वाले ऐप्स
  • त्वरित जैविक एकीकरण की तलाश में विकासकर्ता
  • एंड्रॉइड सुरक्षा पर केंद्रित परियोजनाएँ
  • संवेदनशील डेटा वाले मोबाइल ऐप्स
  • त्वरित जैविक पहचान परीक्षण की आवश्यकता वाले प्रोटोटाइप

विचार योग्य बातें

  • Android प्लेटफॉर्म पर सीमित
  • उपकरण जैविक पहचान हार्डवेयर की आवश्यकता होती है
  • iOS समर्थन नहीं है
  • Android SDK संगतता संस्करण पर निर्भर करता है
  • मैनिफेस्ट में सही अनुमति प्रबंधन की आवश्यकता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

BiometricX

The easy way to use biometric authentication in your Flutter app.
Supports Fingerprint, FaceID and Iris.

Demo APK.

Starting

$ flutter pub add biometricx

Configuration

Change your android MainActivity to extends FlutterFragmentActivity.

import io.flutter.embedding.android.FlutterFragmentActivity

// kotlin
class MainActivity: FlutterFragmentActivity() {
  ...
}
import io.flutter.embedding.android.FlutterFragmentActivity;

// java
class MainActivity extends FlutterFragmentActivity {
  ...
}

Usage

To check biometric type of your device.

BiometricType type = await BiometricX.type;

Here is the list of biometric types.

BiometricType.FACE
BiometricType.FINGERPRINT
BiometricType.IRIS
BiometricType.MULTIPLE
BiometricType.NONE
BiometricType.NO_HARDWARE
BiometricType.UNAVAILABLE
BiometricType.UNSUPPORTED

To check if your device can use biometric authentication.

bool isBiometricEnabled = await BiometricX.isEnabled;

To encrypt data using biometric authentication.

BiometricResult result = await BiometricX.encrypt({
  biometricKey: 'salkuadrat',
  message: 'This is a very secret message',
});

if (result.isSuccess && result.hasData) {
  // Keep this messageKey to decrypt your message.
  // This messageKey will be randomly generated by BiometricX plugin.
  String messageKey = result.data!;
} else {
  showToast(result.errorMsg, context: context);
}

If you need a persistent messageKey, you can supply it as parameter to encrypt.

BiometricResult result = await BiometricX.encrypt({
  biometricKey: 'salkuadrat',
  messageKey: 'secret_message', // use persistent messageKey
  message: 'This is a very secret message',
});

if (result.isSuccess && result.hasData) {
  // Keep this messageKey to decrypt your message.
  // This will be the same value as messageKey above ('secret_message')
  String messageKey = result.data!;
} else {
  showToast(result.errorMsg, context: context);
}

To decrypt data using biometric authentication.

// Use the same biometricKey that is used to encrypt your message.
// Use messageKey that you get from [BiometricX.encrypt].
BiometricResult result = await BiometricX.decrypt({
  biometricKey: 'salkuadrat',
  messageKey: messageKey,
});

if (result.isSuccess && result.hasData) {
  // This will contains your original message.
  String message = result.data!;
} else {
  showToast(result.errorMsg, context: context);
}

To show custom message in your biometric prompt, method encrypt and decrypt have parameters you can use to change the biometric prompt dialog.

BiometricResult result = await BiometricX.encrypt({
  biometricKey: 'salkuadrat',
  message: 'This is a very secret message',
  title: 'Biometric Encryption',
  subtitle: 'Enter biometric credentials to encrypt your message',
  description: 'Scan fingerprint or face.',
  negativeButtonText: 'USE PASSWORD',
  confirmationRequired: true,
});
BiometricResult message = await BiometricX.decrypt({
  biometricKey: 'salkuadrat',
  messageKey: messageKey,
  title: 'Biometric Decryption',
  subtitle: 'Enter biometric credentials to decrypt your message',
  description: 'Scan fingerprint or face.',
  negativeButtonText: 'USE PASSWORD',
  confirmationRequired: true,
});

Example

Example project.
Demo APK.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।