flutter_protector 0.0.2+2
flutter_protector: ^0.0.2+2 copied to clipboard
A Flutter plugin that provides device and platform-related security features.
flutter_protector (0.0.2) #
A Flutter plugin that provides device and platform-related security features.
This plugin offers various methods to enhance the security of your Flutter applications by providing information about the device and platform. It includes checks for emulator detection, root/jailbreak status, sniffing apps, VPN connection status, proxy settings, and more.
Important Note: While this plugin provides helpful checks, it's crucial to understand that no single method can guarantee complete security. Use these checks as part of a comprehensive security strategy that includes other best practices like code obfuscation, secure data storage, and server-side validation.
Features #
- Platform Version: Retrieves the platform version (e.g., Android 13, iOS 16).
- Emulator Detection: Checks if the app is running on an emulator (Android).
- Root/Jailbreak Detection: Checks if the device is rooted (Android) or jailbroken (iOS).
- Sniffing App Detection: Checks for the presence of known sniffing apps.
- VPN Connection Detection: Checks if a VPN is currently connected.
- Proxy Detection: Checks if a proxy is set on the device.
- Local IP Address: Retrieves the local IP address of the device.
- Public IP Check: Checks if the device's IP address is a public IP.
- VPN Using Network Interface Check: Checks if the VPN is using a network interface (if a VPN is connected).
- Target Platform Web Launch Mode: Detects target platform when running on the web.
Getting Started #
-
Add Dependency:
dependencies: flutter_protector: ^latest_version # Replace with the latest version from pub.dev
-
Install Packages:
flutter pub get
-
Import:
import 'package:flutter_protector/flutter_protector.dart';