利用Alfred Workflow获取Google Authenticator动态密码
公司的跳板机登陆需要用到Google Authenticator,每次都要掏出手机,找到App,对着密码一个一个数字敲,就很麻烦,就想着,就不能所有操作都在电脑上吗?功夫不负有心人,经过一番Google,终于找到了一个办法。
原来Google Authenticator使用的是公开的TOTP(Time-based One-Time Password)算法,而且现在已经有开源项目可以提取密钥了,那事情就简单了。
办法
手机上通过Google Authenticator的导出功能,导出密钥对应的二维码。
使用相机或者微信去识别这个二维码,会得到一串代码,类似:otpauth-migration://offline?data=…
使用ExtractOtpSecrets来提取密钥
将得到的密钥填入到workflow中。
Alfred中输入
gga
获取你的动态密码吧。
附:Workflow下载地址: 下载地址
利用Alfred Workflow获取Google Authenticator动态密码
http://lhcnicholas.github.io/2023/05/09/利用Alfred-Workflow获取Google-Authenticator动态密码/