Python OTP example that works with Google Authenticator.
Basic functions to generate and validate TOTP and HOTP codes.
Missing secure secret generation.
No user management.
This repo supports a GenCyber camp lesson on pyton programming using TOTP. The audience isn't expected to be programming or security knowledgeable.
The startup of Binder.org takes a minute or so to establish an IPython environment. To start he lesson click on the lesson link "LESSON.ipynb". Feel free to play/alter the steps in the lesson. You will be working a temporary sandbox, so can not damage the original lesson.