Project

twofu

0.0
No commit activity in last 3 years
No release in over 3 years
Twofu is a compatible command-line alternative to Google Authenticator which allows you to get 2FA codes when you aren't near your phone, quickly.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0

Runtime

~> 2.1
 Project Readme

Gem Version

Twofu

A Two-factor Authenticator Command-line App

Twofu is a compatible command-line alternative to Google Authenticator which allows you to get 2FA codes when you aren't near your phone, quickly. It will show you current, previous and next codes for each account you have, as well as telling you how many seconds until they expires.

Installation

Simply install this gem:

$ gem install twofu

Usage

Before using this app, you should prepare a file in which you will store all your secrets:

$ touch ~/.twofu.yml

Add your secret in the form of Account Name: SOMEBASE32SECRET (notice the space after colon, it's important) e.g.

$ echo "The TARDIS: BZCZ3OUC5BUJEYYC" >> ~/.twofu.yml
$ echo "Bank of Karabraxos: Z44QN4EZK76H5MVG" >> ~/.twofu.yml

Enjoy the tofu:

$ twofu
+--------------------+--------+--------+--------+
| account            | prev   | now    | next   |
+--------------------+--------+--------+--------+
| The TARDIS         | 754027 | 907055 | 423897 |
| Bank of Karabraxos | 062481 | 361305 | 534213 |
+--------------------+--------+--------+--------+
[===============               ] 15s

Thanks

Twofu is made possible thanks to these awesome gems:

Twofu is a clone of gauth (which is not too bad for the first gem that I made, I guess).

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ukazap/twofu.

License

The gem is available as open source under the terms of the MIT License.