> 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.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2F16AEdayX4jmpaYhLayiv%2Fimage.png?alt=media\&token=ba4527d5-5090-46b6-8ef4-9fb231abec25)<br>
2. Tap the "+" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FMbkXZGCng4AvmNYf4eey%2Fimage.png?alt=media\&token=6ca4bef0-f15b-4fce-827a-bb6ed4fcc601)

#### Scan a QR code

1. Scan a QR code from the setup page of your account provider (for example, Google 2FA).\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FzXMv6ekqMB2Hp8LAzwBv%2Fimage.png?alt=media\&token=23f4528f-5c49-4d44-a96c-2942a746e108)

#### Add secret manually

1. Tap the "Add manually" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FrsV8HLpJ4BNW3cNe7vK4%2Fimage.png?alt=media\&token=399373ef-7cd5-4f9e-9698-0ad2601fca59)<br>
2. Type the account name and secret key in the corresponding fields.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2F25WLIrawzyM6NDU1GOiU%2Fimage.png?alt=media\&token=da67e783-2713-474e-a463-629154c2e6a4)<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.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FniVAERG2w3Mms00nmQn9%2Fimage.png?alt=media\&token=5f81bc19-bd75-4cd5-86cf-affbf92a5d20)\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FUJC7DuJqsMTKBPckR4g3%2Fimage.png?alt=media\&token=4746704a-938e-471b-a596-9117b9afa77c)<br>
4. Tap the "Add" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2F8reijqOxlEmL0U6C2jRL%2Fimage.png?alt=media\&token=ee11af00-2bff-4156-828b-b47c4e3f56ed)<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.\
\
![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FpqMc1K9kTxMx7hoDBobX%2Fimage.png?alt=media\&token=00802026-169f-4bb0-86f4-1e0ca5e42352)<br>

The validity timer of the OTP code is displayed next to the code.\
\
![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2F5GCt8TquF8dy2xU70TVi%2Fimage.png?alt=media\&token=cec63991-e874-4c3c-b97f-e9ae964ad7b8)

### Copy OTP

To copy OTP just tap the OTP code.

![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FqdCUrRJeSj8UKzYg59YM%2Fimage.png?alt=media\&token=36e59ede-ef10-4f86-8d5f-520f4743cb9a)![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FrI1fDQ7fNslflkxa3rA6%2Fimage.png?alt=media\&token=f1e30ed8-fb6a-4f7c-8bcf-07174f7a7def)

### Edit OTP account

1. To edit the OTP account title or name just tap its name and the edit menu will open.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FEzCXElOccld8eoMzVqJK%2Fimage.png?alt=media\&token=f350e3b9-bae6-4211-bd0c-b9152a0f340c)<br>
2. Make all changes needed and then tap the "Save" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FJj6YBjezJqzo8fv5tNkO%2Fimage.png?alt=media\&token=c94a3646-c9c0-41f1-89d8-f8f474e529eb)

### Delete OTP account

1. To delete the OTP account [open the edit menu](#edit-otp-account).
2. Then tap the "Delete" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2F7ojbFlVYWGepwxiD2ZD7%2Fimage.png?alt=media\&token=62540646-70d1-4eae-aaf2-24e87491cded)<br>
3. Confirm operation.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FcTehBS8cwSvH7OFgDAOv%2Fimage.png?alt=media\&token=7fd2df8b-d7e8-49c2-90d5-1c3eddb9f263)
