Skip to content

Instantly share code, notes, and snippets.

@ritou
Created October 31, 2013 10:26
Show Gist options
  • Save ritou/7247476 to your computer and use it in GitHub Desktop.
Save ritou/7247476 to your computer and use it in GitHub Desktop.
$ 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