Debian Codegraph @

codegroup.html

raw ◀ ▶
1 Debian patch touch this file
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>CODEGROUP: Five-Letter Codegroup Filter</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7 <meta name="author" content="John Walker" />
8 <meta name="description" content="CODEGROUP: Five-Letter Codegroup Filter" />
9 <meta name="keywords" content="codegroup, five, letter, filter, cryptography, espionage" />
10 <style type="text/css">
11 dl.sample dt {
12 font-weight: bold;
13 margin-bottom: 0px;
14 margin-top: 1ex;
15 }
16
17 dl.sample dd {
18 font-family: monospace;
19 font-size: smaller;
20 margin-top: 0px;
21 white-space: pre;
22 }
23 </style>
24 </head>
25 <body class="standard">
26 <center>
27 <h1><img src="codegroup.jpg" alt="CODEGROUP" width="636" height="237" /></h1>
28 <h2>
29 Five-Letter Codegroup Filter
30 </h2>
31 </center>
32
33 <hr />
34
35 <p />
36
37 <p class="j">
38 This page describes a program, <b>codegroup</b>, which
39 encodes and decodes arbitrary binary data in five-letter
40 code groups, just like spies use.
41
42 </p>
43
44
45 <h3>NAME</h3>
46 <b>codegroup</b> &ndash; encode / decode binary file as five letter
47 codegroups
48
49 <h3>SYNOPSIS</h3>
50 <b>codegroup</b> <b>-d</b>|<b>-e</b> [ <b>-u</b> ] [ <em>infile</em> [ <em>outfile</em> ] ]
51
52 <h3>DESCRIPTION</h3>
53
54 <p class="j">
55 For decades, spies have written their encoded messages in
56 groups of five letters.
57 </p>
58
59 <p class="j">
60 <b>codegroup</b> encodes any file into this form,
61 allowing it to be transmitted through any medium, and
62 decodes files containing codegroups into the original input.
63 Encoded files contain a 16-bit cyclical redundancy check
64 (CRC) and file size to verify, when decoded, that the
65 message is complete and correct. Files being decoded may
66 contain other information before and after the codegroups,
67 allowing in-the-clear annotations to be included.
68 </p>
69
70 <p class="j">
71 <b>codegroup</b> makes no attempt, on its own, to prevent
72 your message from being read. Cryptographic security should
73 be delegated to a package intended for that purpose, such as
74 <b>pgp</b>. <b>codegroup</b> can then be applied to the
75 encrypted binary output, transforming it into easily
76 transmitted text. Text created by <b>codegroup</b> uses
77 only upper case ASCII letters and spaces. Unlike files
78 encoded with <b>uuencode</b> or <b>pgp</b>'s &ldquo;ASCII armour&rdquo;
79 facility, the output of codegroup can be easily (albeit
80 tediously) read over the telephone, broadcast by shortwave
81 radio to agents in the field, or sent by telegram, telex, or
82 Morse code.
83 </p>
84
85 <p class="j">
86 To illustrate the difference, here are the first few lines
87 of a binary file encoded by:
88 </p>
89
90 <dl class="sample">
•91 <dt>base64:</dt>
92 <dd>H4sICFJ9MzYAA2EudGFyAOxba3faSNKer+lf0SezO3YmgLnY2I6TyQIGgwOGBTtOYjuJEMJo
93 DJJGF1+ys//9rarulpqLHRi/mdk9G84JIKGuqq579eNkNn745q9sNru9tcXhs5gtFPAzm83l
94 xad88WyxmNssbhe3sps8m8ttZ/M/8K1vL9oPP0RBaPggypU1vrad+59zosj0HqAj9xF//pe8
95 WsaVNbTH1rfkAfoobm7ea//cZn4rtv/mNtq/kM9t/cCz31Io9foftz9nnW77oMdfcdMdWJe+
96 </dd>
97
98 <dt>uuencode:</dt>
99 <dd>begin 644 data.bin
100 M'XL("&amp;7._R VUO;V /9U+FN2XSF3G6H5OA1(?HOB&lt;=/&lt;7__X7TN&lt;PJ[L&amp;
101 M=?-&amp;1;I+) B8 0;P?_Z'?WY_-=7Q"T_JSZ_6)X9?&amp;"$OU9[N'A[A%^L^6=
102 M?^M[OOV+:9=UM9J^] MAS_ ;X0O]U];(Z?&lt;WWE9_[/]ZMMOO[CG'^2MM
103 M_G(+,US/LWKZE1#C^YO?D_;O#G[7][2R^+0&gt;XJ^&amp;PI/[?7-7U]KU=]SSWQ?
104 </dd>
105
106 <dt>pgp:</dt>
107 <dd>-----BEGIN PGP MESSAGE-----
108 Version: 2.6.2i
109
110 hIwCCb8iTku3pBUBA/9oSDlfk/On9bwjmTnB98Eejr6agkPSi3n6hd8JkAtJd33f
111 kzFq18Jo0xzRUWZ7Di6Jq/FXpeI1yztVDqispbcYOP0aDv4JZOSF1kRsmJ9xK9Bo
112 Cv4a967IXPkkRsjIAkx0B39dYxCzf8kHUn4THmyV/b2qLUZ0cc+mr8hxFfFpuYSM
113 </dd>
114
115 <dt>codegroup:</dt>
116 <dd>ZZZZZ YBPIL AIAIG FMOPP CPAAA DGNGP GPGPA ADNJN ELJKO ELIMO
117 GEOHF KIFGP IFBCB PKCPI YJMHE PHBHP PPOBH NCOHD AKLLL AGHFP
118 DEGEF LKELC EAIJI ABAGP AHPPO IHHPH OHPDF YNFPB ALEPO KMPKP
119 NGCHI GFPBI CBDML PFGHL LIHPC BOOBB HOLDO FJNHP OLHLL OPNIL
120 </dd>
121 </dl>
122
123 <p class="j">
124 Only <b>codegroup</b> conforms to the telegraphic convention of
125 all upper case letters, and passes the &ldquo;telephone
126 test&rdquo; of being readable without any modifiers such as
127 &ldquo;capital&rdquo; and &ldquo;lower-case&rdquo;. Avoiding
128 punctuation marks and lower case letters makes the output of
129 <b>codegroup</b> much easier to transmit over a voice or
130 traditional telegraphic link.
131 </p>
132
133 <h3>OPTIONS</h3>
134 <dl>
135 <dt><b>-d</b></dt> <dd>Decodes the input, previously created by
136 <b>codegroup</b>, to recover the original input file,
137 and verifies it to detect truncation or
138 corruption of the contents.
139 </dd>
140
141 <dt><b>-e</b></dt> <dd>Encodes the input into codegroups.
142 </dd>
143
144 <dt><b>-u</b></dt> <dd>Print how-to-call information.
145 </dd>
146 </dl>
147
148 <h3>APPLICATION NOTES</h3>
149
150 <p class="j">
151 Encoding a binary file as ASCII characters inevitably
152 increases its size. When used in conjunction with existing
153 compression and encryption tools, the resulting growth in
154 file size is usually acceptable. For example, a random
155 extract of electronic mail 32768 bytes in length was chosen
156 as a test sample. Compression with <b>gzip</b> compacted the file
157 to 15062 bytes. It was then encrypted for transmission to a
158 single recipient with <b>pgp</b>, which resulted in a 15233 byte
159 file. (Even though <b>pgp</b> has its own compression, smaller
160 files usually result from initial compression with <b>gzip</b>. In
161 this case, <b>pgp</b> alone would have produced a file of 15420
162 bytes.)
163 </p>
164
165 <p class="j">
166 <b>codegroup</b> transforms the encrypted file into a 37296
167 byte text file. Thus, due to compression, the code groups
168 for the encrypted file are only a little larger than the
169 original cleartext.
170 </p>
171
172 <p class="j">
173 Restricting the character set to upper case letters and including
174 spaces between groups results in substantially larger output
175 files than those produced by <b>uuencode</b> and <b>pgp</b>.
176 Files encoded with codegroup are about 2.5 times the size of the
177 input file, while <b>uuencode</b> and <b>pgp</b> expand the file
178 only about 35%. <b>codegroup</b> is thus preferable only for
179 applications where its limited character set is an advantage.
180 </p>
181
182 <h3>FILES</h3>
183 <p class="j">
184 If no <em>infile</em> is specified or <em>infile</em> is a single
185 &ldquo;<tt>-</tt>&rdquo;, <b>codegroup</b> reads from standard
186 input; if no <em>outfile</em> is given, or <em>outfile</em> is a
187 single &ldquo;<tt>-</tt>&rdquo;, output is sent to standard
188 output. Input and output are processed strictly serially;
189 consequently <b>codegroup</b> may be used in pipelines.
190 </p>
191
192 <h3>BUGS</h3>
193
194 <p class="j">
195 When a CRC error is detected, no indication is given of the
196 location in the file where the error(s) occurred. When
197 sending large files, you may want to break them into pieces
•198 with the splits utility so, in
199 case of error, only the erroneous pieces need to be re-sent.
200 </p>
201
202 <p class="j">
203 It might be nice to embed the original file name and modes
204 in the encoded output, but this opens the door to all kinds
205 of system-dependent problems. You can always include this
206 information as text before the first codegroup, or
207 send an archive created with <b>tar</b> or <b>zip</b>.
208 </p>
209
210 <h3>SEE ALSO</h3>
•211 <b>base64</b>(1),
212 <b>gzip</b>(1), <b>pgp</b>(1),
•213 <b>splits</b>(1), <b>tar</b>(1),
214 <b>uuencode</b>(1), <b>zip</b>(1)
215
216 <h3>EXIT STATUS</h3>
217 <p class="j">
218 <b>codegroup</b> returns status 0 if processing was
219 completed without errors, 1 if errors were detected in
220 decoding a file which indicate the output is incorrect or
221 incomplete, and 2 if processing could not be performed at
222 all due, for example, to a nonexistent input file or no
223 codegroups found in the input.
224 </p>
225
226 <h3>COPYING</h3>
227
228 <p class="copying">
229 This software is in the public domain. Permission to use, copy,
230 modify, and distribute this software and its documentation for
231 any purpose and without fee is hereby granted, without any
232 conditions or restrictions. This software is provided &ldquo;as is&rdquo;
233 without express or implied warranty.
234 </p>
235
236 <hr />
237 <address>
•238 by John Walker<br />
239 September 7th, 2008
240 </address>
241 </body>
242 </html>