Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributesodium

Dart bindings for the libsodium cryptographic library for Dart-VM and Web.

pub.devRemove
web

Lightweight bindings for browser APIs via JS interop

pub.devRemove
ScoresHealth8594 (best)
Maintenance9294 (best)
Quality93100 (best)
Popularity5895 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)29k18M (best)
Likes27242 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars41195 (best)
MaintenanceLatest release4.1.2+1, 4 weeks ago (best)1.1.2, 4 weeks ago
Major versions in 12 months10 (best)
Contributors1323 (best)
Publisherskycoder42.dedart.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFFI (native library)Pure Dart
Code generationYesNo
Direct dependencies120 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Supports all major platforms including Dart-VM and Web.
  • Leverages native build hooks to build native dependencies on demand.
  • Provides SecureKey wrappers for managing sensitive material in memory securely.
  • Zero‑overhead, type‑safe bindings
  • Supports both JS and WASM targets
  • Actively maintained with migration guides
  • No build_runner or code generation required
Weaknesses
  • Requires proper cleanup (disposing of `SecureKey` instances) to avoid memory leaks.
  • Web deployment requires manually downloading and adding the `sodium.js` script to your project via helper commands.
  • Only works on web platforms
  • No support for native mobile or desktop APIs
  • Requires Dart 3.13+
WarningsNoneNone
sodium vs web: which Flutter package should you use? | pubscout