McAfee MEJCAE-AM-DA Product Guide - Page 72

Sending binary data files in ASCII-armored format without encryption or signature

Page 72 highlights

Advanced Topics Working with ASCII and binary data To produce an ASCII-armored formatted file, enter the following command: ebs --encrypt --armor --user

  • 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
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188

E-Business Server
8.6
Product Guide
70
Advanced Topics
Working with ASCII and binary data
To produce an ASCII-armored formatted file, enter the following command:
ebs --encrypt --armor <plaintext_filename> --user <recipient’s_userID>
This command instructs E-Business Server to produce a ciphertext file in ASCII-armored format called
.asc
.
This file contains data in a MIME-like ASCII-armored format. You can upload the file into a text editor
through 7-bit channels and transmit as normal email.
Sending binary data files in ASCII-armored format without encryption or
signature
Use E-Business Server’s
--armor
option to convert a file into ASCII-armored format. No encryption or signing
is involved, so neither sender nor recipient requires a key. When you use the
--armor
option, E-Business
Server attempts to compress the data before converting it to ASCII-armored format. Use the command as
follows:
ebs --armor <binary_filename>
This command instructs E-Business Server to produce an ASCII-armored file called
filename.asc
. The
recipient uses the
--preserve-name
option to unwrap the message and restore the sender’s original filename.
Decrypting ASCII-armored messages
To decrypt an ASCII-armored message, enter the following command:
ebs --decrypt <ASCII-armored_filename>
E-Business Server recognizes that the file is in ASCII-armored format, converts the file back to binary, and
creates an output file in normal plaintext form.
When E-Business Server is decrypting the message, it ignores any extraneous text in mail headers that are
not enclosed in the ASCII-armored message blocks.
Sending a public key in ASCII-armored format
To send a public key to someone else in ASCII-armored format, add the
--armor
option while extracting the
key from your keyring.
ebs --key-export <userID> --armor
If you forgot to use the
--armor
option when you made a ciphertext file or extracted a key, you can convert
the binary file into ASCII-armored format by using the
--armor
option (do not specify encryption).
E-Business Server converts the file to a “
.asc
” file.
Sending ASCII text files to different machine environments
E-Business Server encrypts any plaintext file, binary 8-bit data, or ASCII text. The most common use of
E-Business Server is for email, which is ASCII text.
ASCII text is represented differently on different machines. For example, on an MSDOS system, all lines of
ASCII text are terminated with a carriage return followed by a linefeed. On a UNIX system, all lines end with
just a linefeed. On a Macintosh, all lines end with just a carriage return.
Normal unencrypted ASCII text messages are often automatically translated to some common “canonical”
form when they are transmitted from one machine to another. Canonical text has a carriage return and a
linefeed at the end of each line of text.
Encrypted text cannot be automatically converted by a communication protocol because the plaintext is
hidden by encipherment. To remedy this problem, E-Business Server’s
--text
option lets you specify that
the plaintext be treated as ASCII text and converted to canonical text before encryption. When the message
is received, the decrypted plaintext is automatically converted to the appropriate text form for the local
environment.
To use this feature, enter the
--text
option when encrypting or signing a message: