# OTP generation by Hideez Authenticator App for 2FA

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

To use OTP generation feature first you have to [enroll your Hideez Authenticator on HES](https://enterprise.hideez.com/use-cases/hideez-authenticator-mobile-app/using-hideez-authenticator-as-your-two-factor-authentication-method-for-sso).

## Set up two-factor authentication for your Gmail account

### Step 1: Enable two-factor authentication according to [Google’s instructions](https://support.google.com/accounts/answer/1066447?hl=en\&co=GENIE.Platform%3DAndroid\&oco=0).&#x20;

### Step 2: Open a secret key to generate OTP passwords in the account data.

To do this, go to account editing mode and&#x20;

**OR**&#x20;

when setting up Google Authenticator, click **CAN'T SCAN IT?**\
&#x20;&#x20;

![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/QRk1MUQCEYLwenvs1cI4/5.jpg)

<figure><img src="https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/qOevRhfANg2JYFn1Mq1y/image.png" alt=""><figcaption></figcaption></figure>

### Step 3: Add OTP account

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

1. Open the "Accounts" section.\
   \
   ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/SLtNwgttxxlxEEXS4SDm/image.png)<br>
2. Tap the "+" button.\
   \
   ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/pRipiM5RFR1cN2O4fH7l/image.png)<br>
3. Then you can either scan QR code from the Google account settings or enter it manually:<br>
   * Scan a QR code:\
     \
     ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/mCtt922URKef7iz4RYY1/image.png)<br>
   * Tap "Add manually" button:\
     \
     ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/SJ0akGJ7EQHmhhSRTex3/image.png)\
     \
     Type the account name and secret key in the corresponding fields.\
     \
     ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/14s0zrMz1v4Zi7b0LzXk/image.png)\
     \
     You also can provide advanced parameters such as a OTP length, Hash Algorithm and valid period. Just switch the "Advanced options" trigger to set them up.\
     \
     ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/xM0lk3fIrTVcOdMvKG8d/image.png) ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/JlGU1MrCPuJ9lGUcB4wK/image.png)\
     \
     Tap the "Add" button.\
     \
     ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/wyKyPHsrAz498DFVoy8u/image.png)

### Step 4: Confirm OTP in your Google account

1. Then click on the **Next** button. Enter OTP that is displayed in Hideez Authenticator, "Accounts" section.\
   \
   ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/KsxwEnPuTaNfNcJLo46P/image.png) ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/WuSnPdNyAejsRgH8dO9n/image.png)<br>
2. Click **Verify**.\
   \
   ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/5Ck2s39ULJf2HHAjS3H7/image.png)

## Sign in to your Gmail account with two-factor authentication

### Step 1: Visit the <https://mail.google.com/> account login page

### Step 2: Enter your credentials (login and password)

### Step 3: Choose Google Authenticator app second-factor authentication method

Indicate whether you want to always pass two-factor authentication on this computer or not - clear or leave the checkbox **Don’t ask again on this computer** and also select **Try another way** and **Get a verification code from the Google Authenticator App:**

<figure><img src="https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/BX2zO95Q99wsLaDHirlA/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/iPEYikcIY08Tipx9uxwc/image.png" alt=""><figcaption></figcaption></figure>

### **Step 4: Enter OTP code**

Enter OTP that is displayed in Hideez Authenticator, "Accounts" section and click the **Next** button.\
\
![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/KsxwEnPuTaNfNcJLo46P/image.png) ![](https://content.gitbook.com/content/RdTysrljwe610dPFG7tE/blobs/fxMEhVNGy1wjg7KF46aJ/image.png)

You can find more on OTP generation in Hideez Authenticator - [*iOS*](https://authenticator.hideez.com/user-guide/ios-guide/otp-generation), [*Android*](https://authenticator.hideez.com/user-guide/android-guide/otp-generation).
