* We already check the validity of our TOTP alg in lemonldap-ng-common/t/37-Common-TOTP.pm * Users can generate TOTPs with any password manager or with the oathtool comand, making totp-client.pl unnecessarymerge-requests/411/head
							parent
							
								
									c376cf0feb
								
							
						
					
					
						commit
						c209edf250
					
				@ -1,16 +0,0 @@ | 
				
			||||
#!/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; | 
				
			||||
					Loading…
					
					
				
		Reference in new issue