DOKK / manpages / debian 10 / libyubikey-dev / modhex.1.en
MODHEX(1) YubiKey C Library Manual MODHEX(1)

modhex - convert data to/from modhex encoding

modhex [-d] [-h] DATA

Encode/decode modhex data DATA to binary and hex.

The string DATA is the data to convert.

-d

Decode data (the default is to encode data).

-h

Use hex encoding for all non-modhex data.

ModHex encode ASCII-string "test":

modhex test

Decode ModHex data "ifhgieif" into ASCII string:

modhex -d ifhgieif

ModHex encode hex-encoded data "b565716f":

modhex -h b565716f

Decode ModHex data "nghgibhv" and print hex-encode data:

modhex -d -h nghgibhv

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

Version 1.13 yubico-c