---
title: HOTP Generator node
description: Generates a random numeric one-time passcode (OTP) of a specified length for use in authentication journeys, storing it in shared state for delivery by email or SMS.
component: platform
version: 7.5
page_id: platform:auth-node-ref:hotp-generator
canonical_url: https://docs.pingidentity.com/platform/7.5/auth-node-ref/hotp-generator.html
llms_txt: https://docs.pingidentity.com/platform/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["Nodes &amp; Trees", "Journeys", "Authentication", "Passwords"]
page_aliases: ["auth-node-hotp-generator.adoc"]
section_ids:
  availability: Availability
  outcomes: Outcomes
  properties: Properties
  figure-trees-hotp-example: Example
---

# HOTP Generator node

Creates a string of random digits of the specified length for use as a one-time password.

Passwords are stored in the `oneTimePassword` transient node state property.

Use this node with these nodes to add one-time password verification as an additional factor:

* [OTP Email Sender node](otp-email-sender.html)

* [OTP SMS Sender node](otp-sms-sender.html)

* [OTP Collector Decision node](otp-collector-decision.html)

## Availability

| Product                               | Available? |
| ------------------------------------- | ---------- |
| PingOne Advanced Identity Cloud       | Yes        |
| PingAM (self-managed)                 | Yes        |
| Ping Identity Platform (self-managed) | Yes        |

## Outcomes

Single outcome path.

## Properties

| Property                 | Usage                                                                                                                                                                                           |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| One-time password length | Specify the number of digits in the one-time password. The minimum number of digits is 6, in accordance with the [HOTP specification](https://datatracker.ietf.org/doc/html/rfc4226).Default: 8 |

## Example

The following example uses an HOTP generator as part of multi-factor authentication:

![HOTP generator as part of MFA](_images/trees-node-hotp-generator-example-platform.png)
