Ttoken
Ttoken is a command-line program to generate time-based token/OTP.
Apart from generating time-based OTP, it provides the feature of creating pin+token and copies it to the clipboard so that user can enter it anywhere by just the click of Ctrl+v.
Installation
# yum install ruby rubygems
# gem install ttoken
Usage
Gem provides the executable command-line program - ttoken.
1) To encrypt and save your password/pin in ttoken use the below command.
# ttoken --encrypt
2) Create the file /etc/ttoken/ttoken.yml
and enter the below content.
# Issuer - The site or app you are creating the OTP
:issuer: 'Red Hat'
# Time-based token provided by issuer
:token: "1234abcdxyz"
# Enable pin+token
:pinplustoken: yes
Make sure you change the issuer and token.
3) Running the command will generate pin+token and will copy it to the clipboard.
# ttoken
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/patilsuraj767/ttoken.