> For the complete documentation index, see [llms.txt](https://redbug.gitbook.io/kypz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://redbug.gitbook.io/kypz/kypass-handbook/main-view/entry-view/otp.md).

# 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)

![](https://555466201-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5zbRRsfdQ-Ck6JR1Cn%2F-M6-59pBNI8XNB4fE3sH%2F-M6-AwXPENtOv6mxyE6W%2Fimage.png?alt=media\&token=a21e593f-5477-432a-867d-3ba5e5d4d426)

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