zeba_academy_security 1.0.2 copy "zeba_academy_security: ^1.0.2" to clipboard
zeba_academy_security: ^1.0.2 copied to clipboard

PlatformAndroid

Advanced mobile security plugin for Flutter apps including root detection, emulator detection, screenshot blocking, SSL pinning, API encryption and tamper detection.

zeba_academy_security #

A powerful Flutter security plugin designed to protect mobile applications from common security threats such as rooted devices, emulators, insecure networks, and screen capture leaks.

This package helps developers integrate essential mobile security protections including root detection, emulator detection, screenshot blocking, SSL pinning, API request encryption, and tamper detection.

✨ Features #

  • šŸ” Root Detection Detect if the Android device is rooted to prevent running the app on compromised devices.

  • šŸ“± Emulator Detection Identify if the app is running inside an emulator or virtual environment.

  • 🚫 Screenshot Blocking Prevent users from taking screenshots of sensitive screens.

  • šŸŽ„ Screen Recording Detection Protect sensitive app screens from being recorded.

  • šŸ”’ SSL Pinning Ensure secure communication by validating server certificates.

  • šŸ”‘ API Request Encryption Encrypt API payloads before sending requests.

  • šŸ›” App Tamper Detection Detect modifications or repackaging of the app.

šŸ“¦ Installation #

Add this to your pubspec.yaml:

dependencies:
  zeba_academy_security: ^1.0.0

Then run:

flutter pub get

šŸš€ Basic Usage #

Import the package:

import 'package:zeba_academy_security/zeba_academy_security.dart';

šŸ” Device Security Check #

bool rooted = await ZebaAcademySecurity.isDeviceRooted();
bool emulator = await ZebaAcademySecurity.isEmulator();

🚫 Block Screenshots #

await ZebaAcademySecurity.blockScreenshots();

āœ… Allow Screenshots #

await ZebaAcademySecurity.allowScreenshots();

šŸ”‘ Encrypt API Request #

String encrypted = ZebaAcademySecurity.encryptRequest(
  "request-data",
  "secret-key",
);

šŸ“± Example App #

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

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

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

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

class _MyAppState extends State<MyApp> {

  String status = "Checking security...";

  @override
  void initState() {
    super.initState();
    checkSecurity();
  }

  Future<void> checkSecurity() async {

    bool rooted = await ZebaAcademySecurity.isDeviceRooted();
    bool emulator = await ZebaAcademySecurity.isEmulator();

    await ZebaAcademySecurity.blockScreenshots();

    setState(() {
      status = "Rooted: $rooted\nEmulator: $emulator";
    });
  }

  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Zeba Security Test")),
        body: Center(
          child: Text(status),
        ),
      ),
    );
  }
}

šŸ“ø Screenshots #

screenshots/
 ā”œā”€ security_dashboard.png
 ā”œā”€ root_detection.png
 └─ screenshot_blocking.png

šŸŽÆ Use Cases #

This package is ideal for:

  • FinTech applications
  • EdTech platforms
  • Banking apps
  • Secure enterprise apps
  • Applications handling sensitive user data

šŸ“š Documentation #

For tutorials and guides:

https://zeba.academy/flutter/

šŸ¤ Contributing #

Contributions are welcome.

  1. Fork the repository
  2. Create a new feature branch
  3. Commit your changes
  4. Submit a pull request

šŸ“„ License #

This project is licensed under the GNU General Public License v3.0.

About Me #

✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at https://sufyanism.com/ or connect with me on https://www.linkedin.com/in/sufyanism

Your all-in-one no-bloat hub! #

šŸš€ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy.

Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience.

Level up your tech game today! šŸ’»āœØ

Zeba Academy is a learning platform dedicated to coding, technology, and development.

āž” Visit our main site: https://zeba.academy āž” Explore hands-on courses and resources at: https://code.zeba.academy āž” Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy āž” Follow us on Instagram: https://www.instagram.com/zeba.academy/

Thank you for visiting!

0
likes
150
points
--
downloads
screenshot

Publisher

verified publisherzeba.academy

Advanced mobile security plugin for Flutter apps including root detection, emulator detection, screenshot blocking, SSL pinning, API encryption and tamper detection.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

crypto, flutter, http

More

Packages that depend on zeba_academy_security

Packages that implement zeba_academy_security