encrypt_secure 0.0.1 copy "encrypt_secure: ^0.0.1" to clipboard
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,
);
0
likes
120
points
30
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A reusable Flutter encryption library built on libsodium, providing secure XChaCha20-Poly1305 encryption and decryption with runtime key injection.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, sodium_libs

More

Packages that depend on encrypt_secure