---
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.3
page_id: auth-node-ref::auth-node-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
section_ids:
  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](auth-node-otp-email-sender.html)

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

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

## 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.png)Figure 1. Access Management![HOTP generator as part of MFA](_images/trees-node-hotp-generator-example-platform.png)Figure 2. Ping Identity Platform
