Skip to main content

hotp 0.2.0 copy "hotp: ^0.2.0" to clipboard
hotp: ^0.2.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: .sha1, secret: '12345678901234567890'.codeUnits);
  print(hotp.generate(0)); // 755224
  print(hotp.verify('287082', 0, window: 1)); // 1
}
3
likes
160
points
1.27k
downloads

Documentation

API reference

Publisher

verified publisherodroe.com

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

base32, crypto

More

Packages that depend on hotp