> 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.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FQWOQE3jCpchnqjOF9m6e%2Fimage.png?alt=media\&token=6f155ec5-3b47-4c97-90c8-213dc1f74c6c)<br>
2. Tap the "+" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FTGHbYGidevKlBMNx6r6c%2Fimage.png?alt=media\&token=35c49b91-379d-4468-807d-61207e813146)

#### 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%2F4kd1aoGiknwAdP5FS8Qw%2Fimage.png?alt=media\&token=376291eb-20c3-4e7f-b865-a674b111891d)

#### 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%2FRwhaxYL6whlZJQ2C5p12%2Fimage.png?alt=media\&token=17002132-6794-4e78-b62c-3f4624831e73)<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%2FzeWNCUEXbQxLYyqf5QKZ%2Fimage.png?alt=media\&token=e4ec2b2d-18f6-4c57-84de-3521af4ae15e)<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%2FVfbUev6HOtbkLhD8TPan%2Fimage.png?alt=media\&token=70c0e1f0-73a9-4d1b-a7af-b560ff2ada18)\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FWP44CtWZoHUnBVP3OzP1%2Fimage.png?alt=media\&token=2a84d180-fa92-4ee0-9fba-8ed042813bb5)<br>
4. Tap the "Add" button.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FdyMq2TdPEW9f592h48Mm%2Fimage.png?alt=media\&token=ddc9a73b-f0ad-4825-8968-74ade844fc75)<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%2FZKTaBLIns4L9zdb6K4lP%2Fimage.png?alt=media\&token=a125f9ed-7687-47aa-989c-48ace13765fa)<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%2FzgMtf0MYKDAlPd6AjFnp%2Fimage.png?alt=media\&token=f989e6ca-c902-4737-ba5e-231bd2d8e51b)

### 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%2FXtWot8mmit7UBvTGHXZq%2Fimage.png?alt=media\&token=dced60c2-51be-4b8b-9450-8bbd91af5d0d)![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FLywkgR3lnu1z7szTsAbj%2Fimage.png?alt=media\&token=897d9c2a-5f18-49ce-b474-4f24462fcd00)

### 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%2FUIlvGpCE1lfqAffez2DS%2Fimage.png?alt=media\&token=9214593a-8dbf-4390-87b7-ef0b5df3b3ee)<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%2F4y9bJbGYdaby0IL2La5s%2Fimage.png?alt=media\&token=49fd0bd6-d39b-45a8-b54e-6fedc22c8c32)

### 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%2FEAAgw4nPvRhpbRXhLF1d%2Fimage.png?alt=media\&token=17a2d376-23ec-44cc-87cd-521e4c0863e6)<br>
3. Confirm operation.\
   \
   ![](https://3587013120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LNXC3aPYBuLbSginKPS%2Fuploads%2FKRpeG5niubf1s8TOqNj6%2Fimage.png?alt=media\&token=5bf79d1c-c57b-499f-a082-3c32405f25d1)
