securely 0.0.2 copy "securely: ^0.0.2" to clipboard
securely: ^0.0.2 copied to clipboard

Securely is a flutter plugin for Runtime Application Self-Protection (RASP).

example/lib/main.dart

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

void main() {
  runApp(MaterialApp(home: const MyApp()));
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Securely Example App')),
      body: Center(
        child: Column(
          children: [
            ElevatedButton(
              onPressed: () async {
                bool debuggerDetected = await Securely.isDebuggerDetected();
                String message = debuggerDetected
                    ? '❌ Debugger is detected!'
                    : '✅ No debugger detected.';
                showDialog(
                  context: context,
                  builder: (context) => AlertDialog(
                    content: Container(
                      padding: EdgeInsets.all(10),
                      child: Text(message),
                    ),
                  ),
                );
              },
              child: const Text('Check Debugger Status'),
            ),
            SizedBox(height: 10),
            ElevatedButton(
              onPressed: () async {
                bool rootDetected = await Securely.isRootDetected();
                String message = rootDetected
                    ? '❌ Root is detected!'
                    : '✅ No root detected.';
                showDialog(
                  context: context,
                  builder: (context) => AlertDialog(
                    content: Container(
                      padding: EdgeInsets.all(10),
                      child: Text(message),
                    ),
                  ),
                );
              },
              child: const Text('Check Root Status'),
            ),
            SizedBox(height: 10),
            ElevatedButton(
              onPressed: () async {
                bool emulatorDetected = await Securely.isEmulatorDetected();
                String message = emulatorDetected
                    ? '❌ Emulator is detected!'
                    : '✅ No emulator detected.';
                showDialog(
                  context: context,
                  builder: (context) => AlertDialog(
                    content: Container(
                      padding: EdgeInsets.all(10),
                      child: Text(message),
                    ),
                  ),
                );
              },
              child: const Text('Check Emulator Status'),
            ),
            SizedBox(height: 10),
            ElevatedButton(
              onPressed: () async {
                bool fridaDetected = await Securely.isFridaDetected();
                String message = fridaDetected
                    ? '❌ Frida is detected!'
                    : '✅ No Frida detected.';
                showDialog(
                  context: context,
                  builder: (context) => AlertDialog(
                    content: Container(
                      padding: EdgeInsets.all(10),
                      child: Text(message),
                    ),
                  ),
                );
              },
              child: const Text('Check Frida Status'),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
160
points
114
downloads

Publisher

unverified uploader

Weekly Downloads

Securely is a flutter plugin for Runtime Application Self-Protection (RASP).

Repository (GitHub)
View/report issues

Topics

#secure #security #root-detection #debugger-detection #frida-detection

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on securely

Packages that implement securely