# OTP

Just enter the **OTP** url in any field and KyPass will translate it to the correct secret key:

```
otpauth://totp/Example:alice@google.com?secret=DPJBSKY3EHWP3PXP&issuer=Example 
```

KyPass could also capture this **OTP** url from a QRCode ("Add OTP" function from the tools menu)

![](/files/-M6-AwXPENtOv6mxyE6W)

## OTP arguments

These arguments are used by KyPass to generate the **OTP** code:

### secret

This parameter is an arbitrary key value encoded in Base32 according to [RFC 3548](http://tools.ietf.org/html/rfc3548).

### digits

This parameter may have the values 6 or 8, and determines how long of a one-time passcode to display to the user.&#x20;

If omitted, the default value is **6**.

### period&#x20;

This parameter defines a period that a **OTP** code will be valid for, in seconds.&#x20;

If omitted, the default value is **30**.


---

# Agent Instructions: 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:

```
GET https://redbug.gitbook.io/kypz/kypass-handbook/main-view/entry-view/otp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
