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

पैकेज विवरणv1.0.4

native_encryptor

अपने Flutter ऐप में मूल कोड का उपयोग करके डेटा को सुरक्षित रूप से एन्क्रिप्ट/डिक्रिप्ट करें। सुरक्षा में सुधार के लिए यादृच्छिक लवण और IV जोड़ें। आसान उपयोग के लिए API, क्रॉस-प्लेटफॉर्म संगत।

AndroidiOSmacOS
30-दिन डाउनलोड
22
लाइक
6
Pub अंक
130

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

flutter pub add native_encryptor

पैकेज अवलोकन

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

NativeEncryptor एक Flutter पैकेज है जो Android, iOS और macOS पर मूल कोड का उपयोग करके डेटा को सुरक्षित रूप से एन्क्रिप्ट और डीक्रिप्ट करने की अनुमति देता है। यह प्रत्येक एन्क्रिप्शन ऑपरेशन में यादृच्छिक सॉल्ट और इनिशियलाइज़ेशन वेक्टर (IVs) को स्वचालित रूप से जोड़कर सुरक्षा को बढ़ाता है। सरलता के साथ डिज़ाइन किया गया, यह एक आसान उपयोग वाला API प्रदान करता है जबकि क्रॉस-प्लेटफॉर्म संगतता बनाए रखता है। मोबाइल एप्लिकेशन में उपयोगकर्ता डेटा, जैसे प्रमाणपत्र, टोकन या व्यक्तिगत जानकारी को सुरक्षित रखने के लिए आदर्श है।

उपयोग

  • उपयोगकर्ता प्रमाण-पत्र का सुरक्षित भंडारण
  • स्थानीय एप्लिकेशन डेटा को एन्क्रिप्ट करना
  • संवेदनशील कॉन्फ़िगरेशन फ़ाइलों की सुरक्षा
  • एन्क्रिप्टेड पेलोड का सुरक्षित स्थानांतरण
  • डेटा गोपनीयता नियमों का पालन करना

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

  • बेहतर प्रदर्शन के लिए मूल एन्क्रिप्शन का उपयोग करता है
  • स्वचालित रूप से यादृच्छिक लवण और IV उत्पन्न करता है
  • Android, iOS और macOS के लिए क्रॉस-प्लेटफ़ॉर्म समर्थन
  • सरल और सीधा API
  • यादृच्छिक एन्क्रिप्शन पैरामीटर्स के माध्यम से सुधारित सुरक्षा

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

  • उच्च डेटा सुरक्षा की आवश्यकता वाले ऐप्स
  • गोपनीयता-केंद्रित एप्लिकेशन बनाने वाले डेवलपर्स
  • GDPR या HIPAA के अनुपालन की आवश्यकता वाले प्रोजेक्ट
  • संवेदनशील उपयोगकर्ता जानकारी के साथ मोबाइल ऐप्स
  • प्रदर्शन और सुरक्षा को प्राथमिकता देने वाली टीमें

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

  • प्रत्येक प्लेटफॉर्म पर मूल कोड एकीकरण की आवश्यकता होती है
  • मूल निर्भरता के कारण ऐप के आकार में थोड़ी वृद्धि हो सकती है
  • मेमोरी की सीमाओं के कारण बहुत बड़े डेटा सेट के लिए उपयुक्त नहीं है
  • एन्क्रिप्शन एल्गोरिदम के सीमित कस्टमाइजेशन
  • पैकेज के बाहर की कुंजी प्रबंधन के सही कार्यान्वयन पर निर्भर करता है

मूल README

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

Native Encryptor for Flutter

A powerful plugin for secure data handling in your Flutter apps.

Key Features

  • Native Code Integration: Ensures top-tier security and performance.
  • Random Salt & IV: Adds an extra layer of protection.
  • Passphrase-Based Encryption: Customizable and flexible security.
  • User-Friendly API:** Simplifies integration into your Flutter app.
  • Cross-Platform Compatibility: Works seamlessly on both iOS and Android.
Screenshots
encrypted_value decrypted_value input_content

Installation

  1. Add to pubspec.yaml:

    YAML

dependencies:
   native_encryptor: <latest_version>
  1. Fetch the plugin:

Bash

flutter pub get
  1. Import in your Dart code: Dart
     import 'package:native_encryptor/native_encryptor.dart';
    

Basic Usage

Dart

import 'package:flutter/material.dart';
import 'package:native_encryptor/native_encryptor.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final    _nativeEncryptorPlugin = NativeEncryptor();
  final TextEditingController _controller = TextEditingController(text: "Secret Message");
  String? encryptedData;
  String? decryptedData;
  final String passphrase = "YourSecretPassphrase";

  Future<void> encrypt() async {
    encryptedData = await _nativeEncryptorPlugin.encrypt(
      passPhrase: passphrase,
      contentToEncrypt: _controller.text,
    );
    setState(() {});
  }

  Future<void> decrypt() async {
    decryptedData = await _nativeEncryptorPlugin.decrypt(
      passPhrase: passphrase,
      concatenatedCipherText: encryptedData!,
    );
    setState(() {});
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Native    Encryptor')),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Column(
            children: [
              TextField(
                controller: _controller,
                decoration: const InputDecoration(labelText:    'Enter text'),
              ),
              ElevatedButton(onPressed: encrypt, child: const Text('Encrypt')),
              if (encryptedData != null)
                Text('Encrypted: $encryptedData'),
              ElevatedButton(onPressed: decrypt, child: const Text('Decrypt')),
              if (decryptedData != null)
                Text('Decrypted: $decryptedData'),
            ],
          ),
        ),
      ),
    );
  }
}

API Reference

  • encrypt({required String passPhrase, required String contentToEncrypt}) Encrypts the given content with the provided passphrase. Returns: The encrypted data as a string.
  • decrypt({required String passPhrase, required String concatenatedCipherText}) Decrypts the given encrypted data with the provided passphrase. Returns: The original decrypted content.
  • getPlatformVersion() Retrieves the current platform version for debugging purposes.

License

This plugin is licensed under the MIT License.

Contributing

We welcome contributions! Please feel free to open issues or submit pull requests.

Connect with me:

  • GitHub: https://github.com/subhashDev11
  • LinkedIn: https://www.linkedin.com/in/subhashcs/
  • Medium: https://medium.com/@subhashchandrashukla

Enhance your Flutter app's security with Native Encryptor!

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

  • plugin_platform_interface^2.1.8
  • web^1.1.0

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

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

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