NAME
Kernel::System::TwoFactor::Algorithm::TOTP
DESCRIPTION
This is a two-factor authentication module that implements time-based one-time password algorithm (TOTP
).
PUBLIC INTERFACE
GenerateOTP()
Generates time-based one-time password for two-factor authentication.
my $OTP = $Module->GenerateOTP( Secret => 'MySharedSecretKey', # (required) Shared secret key GracePeriod => 120, # (optional) Grace time period in seconds, larger than 0, default: 30 Previous => 1, # (optional) Whether to use previous time period, default: 0 );