Skip to content

An example for Two-Factor Authentication (2FA) in Python

Notifications You must be signed in to change notification settings

jiajionline/2FAinPython

Repository files navigation

2FAinPython, An example for Two-Factor Authentication (2FA) in Python

totp.py, time-based One-time Password (TOTP) is a time-based OTP. The seed for TOTP is static, just like in HOTP, but the moving factor in a TOTP is time-based rather than counter-based.

hotp.py, each time the HOTP is requested and validated, the moving factor is incremented based on a counter.

pip install pyotp pillow qrcode

About

An example for Two-Factor Authentication (2FA) in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages