Revision 810d2c7f944822eba10bbd884ae499271f16fb67 authored by Maxime Besson on 27 August 2019, 09:01:32 UTC, committed by Maxime Besson on 27 August 2019, 21:13:36 UTC
1 parent a04a376
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 ...