Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeotp

Generate TOTP/HOTP codes per RFC6238/4226 with Base32 secrets and optional Google Auth mode.

pub.devRemove
totp

Generate and verify Time-based One-time Passwords (TOTP) following RFC 6238.

pub.devRemove
ScoresHealth85 (best)64
Maintenance74 (best)57
Quality100100
Popularity79 (best)17
Community80 (best)58
Compatibility100100
UsageDownloads (30 days)89k (best)1k
Likes204 (best)10
Pub points160 / 160160 / 160
GitHub stars102 (best)23
MaintenanceLatest release3.2.1, 8 weeks ago0.2.0, 9 days ago (best)
Major versions in 12 months00
Contributors11 (best)4
Publisheryuli.devodroe.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies31 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • RFC‑compliant implementation
  • Supports SHA‑256/512 and Google Auth mode
  • Provides remainingSeconds helper
  • Simple API, no UI dependencies
  • Follows the RFC 6238 specification strictly.
  • Supports customizable algorithms (SHA1, SHA256, SHA512), periods, and digit counts.
  • Provides precise Duration-based time remaining calculations.
Weaknesses
  • Only accepts Base32 secrets
  • constantTimeVerification may not be fully reliable
  • No built‑in UI components
  • Verification does not persist state or prevent replay, requiring manual tracking in your application.
  • Limited to Dart 3.13 or later.
WarningsNoneNone
otp vs totp: which Flutter package should you use? | pubscout