Authen::HOTP - An HMAC-Based One-Time Password Algorithm
use Authen::HOTP qw(hotp);
my $secret = "abcdefghijklmnopqrst"; # 20-byte
my $counter = 0;
my $digits = 6;
my $pass = hotp($secret, $counter, $digits);
This library implements the HOTP algorithm as described in RFC 4226.
Iain Wade, <email@example.com>
Copyright (C) 2006 by root
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.
To install Authen::HOTP, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.