Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTP Type to Types #9

Open
Tracked by #1
yezz123 opened this issue Feb 7, 2023 · 2 comments · May be fixed by #12
Open
Tracked by #1

Add OTP Type to Types #9

yezz123 opened this issue Feb 7, 2023 · 2 comments · May be fixed by #12
Assignees
Labels

Comments

@yezz123
Copy link
Collaborator

yezz123 commented Feb 7, 2023

pydantic/pydantic#5011

@yezz123 yezz123 self-assigned this Feb 7, 2023
@yezz123 yezz123 linked a pull request Feb 7, 2023 that will close this issue
@yezz123 yezz123 added the Types label Feb 17, 2023
@kkirsche
Copy link

Does this requires more specificity in the naming, as there are more than one type of OTP? For example: HOTP and TOTP

The “H” in HOTP stands for Hash-based Message Authentication Code (HMAC). Put in layman’s terms, HMAC-based One-time Password algorithm (HOTP) is an event-based OTP where the moving factor in each code is based on a counter.

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.

@yezz123
Copy link
Collaborator Author

yezz123 commented Jul 20, 2023

Does this requires more specificity in the naming, as there are more than one type of OTP? For example: HOTP and TOTP

The “H” in HOTP stands for Hash-based Message Authentication Code (HMAC). Put in layman’s terms, HMAC-based One-time Password algorithm (HOTP) is an event-based OTP where the moving factor in each code is based on a counter.

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.

Basically, currently we are planning to support only One-time password using PyOTP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants