Install libauthen-oath-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libauthen-oath-perl
Description:
Perl module for OATH One Time Passwords
Authen::OATH is an implementation of the HOTP and TOTP One Time Password algorithms as defined by OATH (http://www.openauthentication.org). . All necessary parameters are set by default, though these can be overridden. Both totp() and htop() have passed all of the test vectors defined in the RFC documents for TOTP and HOTP. . totp() and hotp() both default to returning 6 digits and using SHA. As such, both can be called by passing only the secret key and a valid OTP will be returned.
Homepage: https://metacpan.org/release/Authen-OATH
Version: 2.0.1-1
Section: universe/perl