rsc/2fa
View on GitHub ↗ ★ 1,978 Go
Two-factor authentication on the command line
7 mentions on Hacker News by 5 people: 0 stories, 7 comments · first 2018-11-19 · latest 2026-10-20
20082026
-
For standard RFC6238 TOTP you can just use this: https://github.com/rsc/2fa/
comment by masfuerte · 2026-10-20 · in Android apps running native on macOS -
If you are just trying to get a 2FA code, you can generate them. You could use something like https://github.com/rsc/2fa on your command line.
comment by Jeremy1026 · 2024-08-21 · in Ask HN: How to emulate a smartphone on a computer for banking apps? -
Sure, take a look at the write-up here: https://github.com/rsc/2fa and once you have it working on command line, its just a little wrapper with AutoHotKey/Typinator I guess. The idea came from https://www.raycast.com/cjdenio/two-factor-auth…
comment by swah · 2024-05-06 · in Any way to get around 2FA on GitHub? -
…I prefer convenience, my "2FA bypass" takes half a second typing - "`1", which expands to a call to https://github.com/rsc/2fa using Typinator and puts the code inline...
comment by swah · 2024-05-04 · in Any way to get around 2FA on GitHub? -
You don't need a phone or a hardware token. e.g. https://github.com/rsc/2fa
comment by masfuerte · 2023-03-09 · in Raising the bar for software security: GitHub 2FA begins March 13 -
Pretty cool. I've been using this 2FA tool written in Go which is easy to understand and works great: https://github.com/rsc/2fa
comment by miguelmota · 2019-03-01 · in 2FA on the command line -
https://github.com/rsc/2fa
comment by kylebarron · 2018-11-19 · in Ask HN: Best Command-Line Applications?