This file assumes you have a file (~/.totp.yml) on your machine where you store the SERVICEs, and their secret keys:
aws: rAndOmCharaCTeRsHerE
google: rAndOmCharaCTeRsHerEThen, you can call like this:
ruby totp.rb SERVICEThe repsonse should look like this:
$ ruby totp.rb aws
This code automatically regenerates every 30 seconds
6 seconds remaining
283646
Code copied to clipboard