> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://enterprise.hideez.com/use-cases/hideez-key/using-hideez-key-as-otp-security-key-for-your-two-factor-authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
