---
name: "ykgenerate"
section: "1"
platform: "linux"
package: "yubico-c"
version: "1.13-8"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ykgenerate"
---

# ykgenerate(1)

construct and encrypt an OTP from given data

## NAME

ykgenerate - construct and encrypt an OTP from given data

## SYNOPSIS

**ykgenerate** *AESKEY* *YK\_INTERNALNAME* *YK\_COUNTER* *YK\_LOW* *YK\_HIGH* *YK\_USE*

## DESCRIPTION

Generate OTPs by encrypting given values under the given encryption key.

## OPTIONS

**AESKEY**

The 16-character AES-128 key to use in hex.

**YK\_INTERNALNAME**

Hex encoded internal identity (48 bit).

**YK\_COUNTER**

Hex encoded counter (16 bit).

**YK\_LOW**

Hex encoded timestamp low (16 bit).

**YK\_HIGH**

Hex encoded timestamp high (8bit).

**YK\_USE**

Hex encoded use (8 bit).

## EXAMPLES

Typical usage of the tool is as follows.

```
ykgenerate ecde18dbe76fbd0c33330f1c354871db 8792ebfe26cc 0013 c0a8 00 10
```

Use [ykparse(1)](/ykparse/1.md) to decode the resulting OTP.

## SEE ALSO

YubiKeys can be obtained from Yubico: http://www.yubico.com/
