hotp 0.0.2 copy "hotp: ^0.0.2" to clipboard
hotp: ^0.0.2 copied to clipboard

An implementation of the HMAC-based One-time Password (HOTP).

example/hotp_example.dart

import 'package:hotp/hotp.dart';

void main() {
  final hotp = Hotp(
    algorithm: Algorithm.sha1,
    secret: '12345678901234567890'.codeUnits,
    digits: 6,
  );

  print(List.generate(10, (index) => hotp.generate(index)));
}
3
likes
140
pub points
55%
popularity

Publisher

verified publisherodroe.com

An implementation of the HMAC-based One-time Password (HOTP).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

base32, crypto

More

Packages that depend on hotp