Topic Path: Symbol Reference > Files > IdCoderXXE.pas
ContentsIndexHome
PreviousUpNext
IdCoderXXE.pas

Contains classes, constants, and variables used to implement encoders and decoders for the XXEncode encoding scheme.

IdCoderXXE.pas contains classes, constants, and variables used to implement encoders and decoders for the XXEncode encoding scheme. The XXEncode encoding scheme is used to convert binary data into a 7-bit textual representation, and is very simular to the UUEncode encoding scheme. 

XXEncode, like Base64, is an encoding mechanism designed to represent arbitrary sequences of byte data in a form that need not be humanly readable. XXEncode was designed as a replacement for an earlier version of UUEncode, which contained an encoding error. XXEncode is little used since the UUEncode alphabet has been enhanced. 

XXEncode encoding represents 24-bit groups of input as output strings of 4 encoded characters. Proceeding from left to right, a 24-bit input group is formed by concatenating 3 8bit input groups. These 24 bits are then treated as 4 concatenated 6-bit groups, each of which is translated into a single digit in the XXEncode alphabet. 

XXEncode differs from Base64 and UUEncode in that it utilizes a different coding table, or alphabet, to represent the encoded output values. The XXEncode Alphabet contains the following encodings and values: 

 

Value 
Encoding 
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 
Class 
Description 
Implements a decoder for data encoded using the XXEncode algorithm and the XXEncode alphabet. 
Implements support for the XXEncode alphabet and the XXEncode algorithm. 
Constant 
Description 
Represents valid characters and their ordinal position in the XXEncode alphabet. 
Variable 
Description 
Identifies the decoding table used by TIdDecoderXXE for the XXEncode alphabet. 
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.