Revision 248b81ad0ef914d5a9b943a5e42096f7b0b00174 authored by Christophe Maudoux on 29 August 2018, 17:49:08 UTC, committed by Christophe Maudoux on 29 August 2018, 17:49:08 UTC
1 parent c9f257a
totp-client.pl
#!/usr/bin/perl -w
use Authen::OATH;
use Convert::Base32 qw( decode_base32 );
unless ( $ARGV[0] ) {
print STDERR "Usage $0 <totp-secret>\n";
exit 1;
}
my $oath = Authen::OATH->new();
my $totp = $oath->totp( decode_base32( $ARGV[0] ) );
print "$totp\n";
1;
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...