> 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/android-guide/otp-generation.md).

# OTP generation

Hideez Authenticator allows users 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 OTP generation feature first you have to [enroll your Hideez Authenticator on HES](/user-guide/android-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/xODvD73XmNjnjDg6VDpH)<br>
2. Tap the "+" button.\
   \
   ![](/files/L8mXywd2YZXDhw40QvOV)

#### Scan a QR code

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

#### Add secret manually

1. Tap the "Add manually" button.\
   \
   ![](/files/6lMwyFBrj0FatZdTFHUf)<br>
2. Type the account name and secret key in the corresponding fields.\
   \
   ![](/files/1rEsMWQnnSKdiPDnWhW3)<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/HytN1A0wqyWhqxKeOrYM)\
   \
   ![](/files/g0aI6ofh948pXFmRuVLf)<br>
4. Tap the "Add" button.\
   \
   ![](/files/jV5hHLtoq0B3nANxAUOw)<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/S4iR0Kqzw0tuRG0pdhzZ)<br>

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

### Copy OTP

To copy OTP just tap the OTP code.

![](/files/U8lRoN5uLIKoAHW8eUDT)![](/files/QNnxBssJLvgGoO1ZbXss)

### Edit OTP account

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

### Delete OTP account

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