hotp 0.0.1
hotp: ^0.0.1 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)));
}