Github two-step verification 2FA (two-factor) mechanism based on TOTP algorithm Python3.10/Golang1.21 implementation

Original link: https://v3u.cn/a_id_319

20230929120924_81767.png

Starting from March this year (2023), Github began to force users to enable two-step verification 2FA (two-factor) login verification. There is no doubt that it is for security reasons. After all, once a Github account is stolen, all code warehouses will be destroyed. Once, regarding the necessity of two-factor login, please see: Don’t let your server (vps) become a chicken (ssh brute force cracking), key verification and two-way factor login are worth having. To put it bluntly, dual-factor login is a measure to prove “you are yourself” through a third-party device. Github officially recommends downloading APPs such as 1Password, Authy, and Microsoft Authenticator on the mobile terminal to verify by scanning the QR code. In fact, it does not have to be so troublesome. This time we implemented two-factor login verification through Python/Golang code. …

This article is reproduced from: https://v3u.cn/a_id_319
This site is for inclusion only, and the copyright belongs to the original author.