t
Title: modhex
Author: [FIXME: author] [see http://docbook.sf.net/el/author]
Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
Date: Version 1.13
Manual: YubiKey C Library Manual
Source: yubico-c
Language: English

"MODHEX" "1" "Version 1.13" "yubico-c" "YubiKey C Library Manual"
-----------------------------------------------------------------
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
"NAME"
modhex - convert data to/from modhex encoding
"SYNOPSIS"
modhex [-d] [-h] DATA
"DESCRIPTION"
Encode/decode modhex data DATA to binary and hex.
"OPTIONS"
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.

"EXAMPLES"
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
.\}
"SEE ALSO"
YubiKeys can be obtained from Yubico: http://www.yubico.com/