hotp 0.1.0 copy "hotp: ^0.1.0" to clipboard
hotp: ^0.1.0 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
160
points
533
downloads

Publisher

verified publisherodroe.com

Weekly Downloads

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

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

base32, crypto

More

Packages that depend on hotp