encrypt_secure 0.0.1
encrypt_secure: ^0.0.1 copied to clipboard
A reusable Flutter encryption library built on libsodium, providing secure XChaCha20-Poly1305 encryption and decryption with runtime key injection.
encrypt_secure #
Secure XChaCha20-Poly1305 encryption for Flutter using sodium_libs.
Features #
- XChaCha20-Poly1305 encryption
- Custom Base64 key support
- Additional Authenticated Data (AAD)
- Singleton service
Installation #
dependencies:
encrypt_secure: ^1.0.0
await EncryptionService.instance.init(
base64Key: "YOUR_BASE64_KEY",
);
final encrypted = await EncryptionService.instance.encryptString(
plainText: "Hello",
);
final decrypted = await EncryptionService.instance.decryptString(
message: encrypted,
);