Created
October 31, 2013 10:26
-
-
Save ritou/7247476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test.pl | |
use strict; | |
use warnings; | |
use Authen::OATH; | |
use Data::Dumper; | |
my $oath = Authen::OATH->new(); | |
my $totp = $oath->totp( "1234567890", 1332083784 ); | |
print Dumper($totp); | |
my $hotp = $oath->hotp( "1234567890", 1 ); | |
print Dumper($hotp); | |
$ perl test.pl | |
$VAR1 = '142045'; | |
$VAR1 = '263420'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment