-
Notifications
You must be signed in to change notification settings - Fork 30
/
modhex.1.txt
57 lines (39 loc) · 993 Bytes
/
modhex.1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MODHEX(1)
=========
:doctype: manpage
:man source: yubico-c
:man manual: YubiKey C Library Manual
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
MODHEX ALPHABET
---------------
The modhex alphabet is a base16 alphabet just as hex, they map as follows:
0 1 2 3 4 5 6 7 8 9 a b c d e f
c b d e f g h i j k l n r t u v
SEE ALSO
---------
YubiKeys can be obtained from Yubico: http://www.yubico.com/