Overview
A Dart library implementing RFC 6238 Time-Based One-Time Password (TOTP) algorithm, compatible with Google Authenticator and other TOTP-compatible apps. It enables secure, time-limited authentication codes for two-factor authentication (2FA). The package supports generating and validating OTPs across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for integrating 2FA into Flutter applications with minimal setup.
Use cases
- Two-factor authentication in mobile apps
- Secure login systems with 2FA
- Integration with Google Authenticator
- Generating time-limited access codes
- User account verification
- Backup code generation
Key features
- RFC 6238 compliant TOTP implementation
- Cross-platform support
- Simple OTP generation and validation
- Supports custom time steps and digits
- Compatible with authenticator apps
- Lightweight and dependency-free
Suitable for
- Apps requiring 2FA
- Authentication services
- Security-focused applications
- Developers building secure login flows
- Integrating with existing TOTP systems
Considerations
- Requires proper time synchronization
- Does not handle QR code generation
- No built-in user interface
- Manual handling of secret key storage
- Not suitable for long-term token storage