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