One-Time Password (OTP)

Home » Glossary Terms » One-Time Password (OTP)

One-Time Password (OTP) is an authentication method that generates unique, temporary codes valid for a short period. Used primarily in Two-Factor Authentication (2FA), OTP enhances security by preventing credential reuse and replay attacks. It can be delivered via authenticator apps, SMS, or email and supports TOTP (time-based) and HOTP (counter-based) algorithms. Keycloak enables OTP customization, including hash algorithms, token length, and expiration time. While OTP improves security, risks like SIM swapping and phishing highlight the need for safer alternatives such as WebAuthn or passkeys.

Recommended content for you

Need expert support for customer and workforce identity management?

Contact us today to learn how we cover everything – from architecture design to deployment and 24/7 maintenance