> For the complete documentation index, see [llms.txt](https://enterprise.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enterprise.hideez.com/use-cases/hideez-key/using-hideez-key-as-otp-security-key-for-your-two-factor-authentication.md).

# OTP manager for two-factor authentication

You can use the Hideez Key for two-factor authentication. For this, you need to complete the account data not only with login and password but also with the secret key for generating OTP.

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

#### Step 1

Visit the <https://mail.google.com/> account login page. \
Place the cursor in the login field and press either the combination **CTRL + ALT + L** or **twice on the Hideez Key button**. If you do not have such an account, then you will be asked to create one.

![](/files/-MA61HeTiCJB97yF7VSa)

Click **Create New Account**.

#### Step **2**

In the Hideez Client account creation window, if necessary, change the automatically added account name, specify a username and password. Save the data.

![](/files/tOudBX1mljoOjUaSPFmR)

#### Step 3

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 4

Add 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;

![](/files/-MA61y7IK1RvRmUq_gFA)

&#x20;&#x20;

![](/files/-MA6210vYxFVu57yqHP0)

Enter the seen number-letter code in the Hideez Client in the OTP field and save it by clicking on the corresponding icon.\
&#x20;&#x20;

![](/files/-MA62MzKt56neyI-Dfcj)

**OR**&#x20;

When the QR code is displayed at the Google Authenticator setup stage, click on the corresponding icon for scanning the QR code and then save it in the Hideez Client.

![](/files/-MA628yvpTNr3nq7gLe7)

Then click on the **Next** button. Place the cursor in the form and press either **CTRL + ALT + O** or **four times on the Hideez Key button**.

![](/files/AvaRt4SizDTwZyKwzgEw)

Click **Verify**.

![](/files/dWCa610oWkxrPlFQj5q8)

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

#### Step 1

Visit the <https://mail.google.com/> account login page. Place the cursor in the login field and press either **CTRL + ALT + L** or **twice on the Hideez Key button**. \
Your login will be entered.

![](/files/-MA62W8tBVyoBfrX_ESO)

#### Step 2

In the next step, position the cursor in the password entry field and press either **CTRL + ALT + P** or **three times on the Hideez Key button**. \
Your password will be entered.

![](/files/-MA62_1pErpqKP7OMwKN)

#### Step 3

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:**

![](/files/-MA62hf7icekHOc0WuV_)

![](/files/-MA62l3xQ-BIkZ19hT7t)

#### Step 4

Place the cursor in the code entry field and press either **CTRL + ALT + O** or **four times on the Hideez Key button**. \
Your OTP will be entered.

![](/files/-MA62qlOjCmZ2q2HCfq2)

Click the **Next** button. Now you are logged in.

You created an account with OTP and passed two-factor authentication at gmail.com.
