【google authenticator】使用基於時間的一次性密碼(Time-based One-time Password,簡稱TOTP)實現。
離線實現即不需要聯網。
https://blog.seetee.me/post/2011/google-two-step-verification/
https://segmentfault.com/a/1190000016100672
https://www.iteye.com/blog/awtqty-zhang-1986275
https://github.com/wstrange/GoogleAuth
https://notes.mengxin.science/2017/05/30/hotp-totp-algorithm-analysis/