File: modhex.1

package info (click to toggle)
libyubikey 1.13-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,668 kB
  • sloc: sh: 11,647; ansic: 878; makefile: 71
file content (102 lines) | stat: -rw-r--r-- 2,225 bytes parent folder | download | duplicates (4)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
'\" 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
.\"
.TH "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
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
modhex \- convert data to/from modhex encoding
.SH "SYNOPSIS"
.sp
\fBmodhex\fR [\-d] [\-h] \fIDATA\fR
.SH "DESCRIPTION"
.sp
Encode/decode modhex data \fIDATA\fR to binary and hex\&.
.SH "OPTIONS"
.sp
The string DATA is the data to convert\&.
.PP
\fB\-d\fR
.RS 4
Decode data (the default is to encode data)\&.
.RE
.PP
\fB\-h\fR
.RS 4
Use hex encoding for all non\-modhex data\&.
.RE
.SH "EXAMPLES"
.sp
ModHex encode ASCII\-string "test":
.sp
.if n \{\
.RS 4
.\}
.nf
modhex test
.fi
.if n \{\
.RE
.\}
.sp
Decode ModHex data "ifhgieif" into ASCII string:
.sp
.if n \{\
.RS 4
.\}
.nf
modhex \-d ifhgieif
.fi
.if n \{\
.RE
.\}
.sp
ModHex encode hex\-encoded data "b565716f":
.sp
.if n \{\
.RS 4
.\}
.nf
modhex \-h b565716f
.fi
.if n \{\
.RE
.\}
.sp
Decode ModHex data "nghgibhv" and print hex\-encode data:
.sp
.if n \{\
.RS 4
.\}
.nf
modhex \-d \-h nghgibhv
.fi
.if n \{\
.RE
.\}
.SH "SEE ALSO"
.sp
YubiKeys can be obtained from Yubico: http://www\&.yubico\&.com/