---
title: HOTP Generator node
description: Creates a string of random digits of the specified length for use as a one-time password.
component: auth-node-ref
version: 7.4
page_id: auth-node-ref::hotp-generator
canonical_url: https://docs.pingidentity.com/auth-node-ref/latest/hotp-generator.html
llms_txt: https://docs.pingidentity.com/auth-node-ref/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"]
superseded_by: https://docs.pingidentity.com/auth-node-ref/latest/hotp-generator.html
section_ids:
  compatibility: Compatibility
  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)

## Compatibility

| Product                                    | Compatible?           |
| ------------------------------------------ | --------------------- |
| PingOne Advanced Identity Cloud            | [icon: check, set=fa] |
| ForgeRock Access Management (self-managed) | [icon: check, set=fa] |
| Ping Identity Platform (self-managed)      | [icon: check, set=fa] |

## Outcomes

Single outcome path.

## Properties

| Property                 | Usage                                                            |
| ------------------------ | ---------------------------------------------------------------- |
| One-time password length | Specify the number of digits in the one-time password.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)
