Flutter top packages and plugins to increase app security

Anuj Kumar Pandey
2 min readJun 25, 2023

--

Top packages and plugins to increase app security

When it comes to increasing app security in Flutter, there are several packages and plugins available that can help you implement various security measures. Here are some popular ones:

secure_application:

for hiding visibility

local_auth:

authentication purpose

flutter_secure_storage:

for storing data

flutter_jailbreak_detection:

for detection of rooting/jailbreak

flutter_windowmanager:

for blacking on ss

hive:

for storing data

http_certificate_pinning:

for secure communication

encrypt:

for cryptography

crypto:

for cryptography

flutter_dotenv:

for .env file in flutter

file_cryptor:

for encryption of files

pointycastle:

To encrypt data transmitted between the application and the server, you can use a package like pointycastle:

import 'package:pointycastle/pointycastle.dart';

// Generate a key pair
final keyPair = new KeyPair.generateKeyPair(new RSAKeyGenerator().parameters);

// Encrypt the data
final plainText = 'Hello, world!';
final cipher = new RSAEngine()
..init(true, PublicKeyParameter(keyPair.public));
final encrypted = cipher.process(plainText.codeUnits);

// Decrypt the data
final decipher = new RSAEngine()
..init(false, PrivateKeyParameter(keyPair.private));
final decrypted = decipher.process(encrypted);

print(String.fromCharCodes(decrypted)); // prints "Hello, world!"

biometric_storage:

for Encrypted file store

--

--