News for hackers. Stuff that matters.
Re:How does Google Authenticator work? by jvanderbot on Friday August 27, 2021 @09:23PM (#28334733)
You can use oathtool if you'd like to "do it yourself". I usually just keep (encrypted with Pass) my secret keys for Authenticators, and execute a one line alias:

oathtool -b --totp `pass show <X>`

... for <X> in github, gmail, blizzard, whatever ...

This way, you can have a backup in case your phone gets lost, and easily port between phones.

Re:How does Google Authenticator work? by stevekemp on Saturday August 28, 2021 @01:55AM (#28335949)
If you're using pass already you could use their OTP plugin:

https://github.com/tadfisher/pass-otp

That gives you "pass otp github.com", etc. You can also export the QRcode, and do similar things.

I put together a simple distribution of pass with a couple of plugins I use, including otp, which is easy to setup - just clone beneath `/opt/pass`:

https://github.com/skx/pass

Re:How does Google Authenticator work? by jvanderbot on Saturday August 28, 2021 @11:40AM (#28338891)
Great tip thanks!