This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby --disable-gems | |
# Roll your own two-factor authentication! Place this file on a USB key, make | |
# it executable, then run: | |
# | |
# two-factor --setup | |
# | |
# Now place each TOTP secret in its own file in the `keys/` directory. I like | |
# to name them after the website they apply to, but any name is fine. To | |
# generate a token, plug in your USB key and: |