FLUTTER ECOSYSTEM

sodium

Dart bindings for libsodium, for the Dart-VM and for the Web

Latest version
4.1.1+2
30-day downloads
24.1K
Likes
27
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Sodium provides Dart bindings for the widely trusted libsodium cryptographic library, enabling secure encryption, decryption, signing, and key management on multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. Designed for ease of use and security, it offers a consistent API across environments, making it ideal for applications requiring robust cryptography. The package is maintained by skycoder42.de and integrates seamlessly with Flutter projects via pub.

Use cases
  • Secure data storage
  • End-to-end encrypted messaging
  • Authentication token handling
  • Secure session management
  • Key derivation and password hashing
Key features
  • Cross-platform crypto support
  • Bindings for Dart-VM and Web
  • Easy-to-use cryptographic primitives
  • Strong security guarantees
  • Well-documented API
Suitable for
  • Apps needing strong encryption
  • Web and mobile apps with privacy requirements
  • Developers prioritizing security best practices
  • Projects using end-to-end encryption
  • Backend services requiring secure operations
Considerations
  • Requires understanding of basic cryptography
  • Not suitable for low-level crypto research
  • May increase app size slightly
  • Depends on native libsodium binaries
  • Limited to supported platforms only
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add sodium

Categories

Dependencies

Dependency list 12 items

Source repository

Related projects