My understanding (which obviously could be wrong) is that the Authen :: OATH module is compatible with the Totp codes generated by the Google Authenticator application. But this does not work for me, whereas a similar bit of Ruby code. We are a perl store here, and it would help if someone could point me in the right direction to save me from digging through both libraries line by line.
This ruby โโworks compatible:
require 'rubygems' require 'rotp' secret = "bqagf6ohx4rp3a67" puts ROTP::TOTP.new(secret).now.to_s
This perl does not:
use Authen::OATH; my $oath = Authen::OATH->new(); my $totp = $oath->totp(" bqagf6ohx4rp3a67" ); print "$totp\n";
source share