totp 0.0.1 copy "totp: ^0.0.1" to clipboard
totp: ^0.0.1 copied to clipboard

An implementation of the Time-based One-time Password (TOTP).

example/totp_example.dart

import 'package:totp/totp.dart';

void main() {
  final totp = Totp(
    algorithm: Algorithm.sha1,
    secret: '12345678901234567890'.codeUnits,
  );
  final datetime = DateTime.parse('1970-01-01T00:00:59Z');

  print(totp.generate(datetime)); // 94287082
}
4
likes
140
pub points
82%
popularity

Publisher

verified publisherodroe.com

An implementation of the Time-based One-time Password (TOTP).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

hotp

More

Packages that depend on totp