> For the complete documentation index, see [llms.txt](https://authenticator.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://authenticator.hideez.com/user-guide/ios-guide/otp-generation.md).

# OTP generation

Hideez Authenticator allows user to generate One-Time Passwords for [a Two-Factor Authentication](https://fidoalliance.org/specs/u2f-specs-master/fido-u2f-overview.html) mechanism.

To use the the OTP generation feature first you have to [enroll your Hideez Authenticator on HES](/user-guide/ios-guide/software-key-enrollment/sso-enrollment.md).

### Add OTP account

You can add an OTP secret either by scanning a QR code or manually.

1. Open the "Accounts" section.\
   \
   ![](/files/EdJLDSQmWKWRQdD6qKey)<br>
2. Tap the "+" button.\
   \
   ![](/files/1I09WEF2gSz74jMLZfBj)

#### Scan a QR code

1. Scan a QR code from the setup page of your account provider (for example, Google 2FA).\
   \
   ![](/files/Pvzvh05aP9o0qRG7btGN)

#### Add secret manually

1. Tap the "Add manually" button.\
   \
   ![](/files/nrUpSNDKKFJJPyhNgBLb)<br>
2. Type the account name and secret key in the corresponding fields.\
   \
   ![](/files/6o3MCEUFp0vc0CQdx5aG)<br>
3. You also can provide advanced parameters such as an OTP length, Hash Algorithm, and valid period. Just switch the "Advanced options" trigger to set them up.\
   \
   ![](/files/KjAj0yoqzXl9rf9ICRsF)\
   \
   ![](/files/ejkShUAgE4zUUsGFa7w1)<br>
4. Tap the "Add" button.\
   \
   ![](/files/eSzSK3be4tvawzKnMhoY)<br>

And there you have it - OTP password generated automatically, you can now confirm it in your service account (for example, Google) and use it for subsequent authorizations.\
\
![](/files/4YdkINWrapGyfvMQsCgs)<br>

The validity timer of the OTP code is displayed next to the code.\
\
![](/files/81btoWBluW8SyHAbIE4s)

### Copy OTP

To copy OTP just tap the OTP code.

![](/files/VHIexcVEnJMaxCxZT9pw)![](/files/lw817qZfDFVEX3J4Q65S)

### Edit OTP account

1. To edit the OTP account title or name just tap its name and the edit menu will open.\
   \
   ![](/files/YiY7VcdCAtijsZWDf5qp)<br>
2. Make all changes needed and then tap the "Save" button.\
   \
   ![](/files/i7I6wl5O4DzbMxO0iRca)

### Delete OTP account

1. To delete the OTP account [open the edit menu](#edit-otp-account).
2. Then tap the "Delete" button.\
   \
   ![](/files/eZDoMfTsN0RJiiBGmMqI)<br>
3. Confirm operation.\
   \
   ![](/files/XUfFDXAzj6blZyhwHYZ3)
