McAfee MEJCAE-AM-DA Product Guide - Page 63

Encrypting with public key encryption, Encrypting into ASCII-armored format, Encrypting a text file

Page 63 highlights

Encrypting and Decrypting Encrypting information Encrypting with public key encryption Encrypting with public key encryption means encrypting to a user's public key. To encrypt information using public key encryption, you use the --encrypt --user option. (The key to which you want to encrypt must be on your keyring.) Note: It is recommended that you reference the key ID instead of the user ID during encryption if you have very similar user IDs or subkeys on your keyring. For example, if you want to encrypt to user ID "[email protected]" and you also have a user ID of "[email protected]" on your keyring, then E-Business Server will encrypt to both users. To ensure that you only encrypt to the intended recipient, reference the key ID of the key to which you want to encrypt. ebs --encrypt --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

61
E-Business Server
8.6
Product Guide
Encrypting and Decrypting
Encrypting information
Encrypting with public key encryption
Encrypting
with
public key
encryption means encrypting to a user’s public key. To encrypt information using
public key encryption, you use the
--encrypt --user
option. (The key to which you want to encrypt must be
on your keyring.)
Note:
It is recommended that you reference the key ID instead of the user ID during encryption if you have very similar
user IDs or subkeys on your keyring. For example, if you want to encrypt to user ID “[email protected]” and you also
have a user ID of “[email protected]” on your keyring, then E-Business Server will encrypt to both users. To ensure
that you only encrypt to the intended recipient, reference the key ID of the key to which you want to encrypt.
ebs --encrypt <filename> --user <recipient’s_userID>
For example, to encrypt the file
testresults.doc
to Jennifer Quino’s key, you would use the following syntax:
ebs --encrypt testresults.doc --user “Jennifer Quino”
Encrypting into ASCII-armored format
Typically, you use the
--encrypt
option in conjunction with other options; the
--encrypt --armor
option
encrypts information into ASCII-armored format, which is suitable for sending through email channels. The
following example would put the file
testresults.doc
in a format appropriate for sending via email:
ebs --encrypt --armor testresults.doc --user “Jennifer Quino”
This results in an encrypted file called
testresults.doc.asc
.
For more information on working with ASCII and binary data, see
Working with ASCII and binary data
on
page 69
.
Encrypting a text file
The
--encrypt
--text
option tells E-Business Server that you are encrypting a text file and preserves its text
format for decryption on other platforms.
Note:
Do not use
--text
with binary data, such as a spreadsheet or word processing file. The binary file format will change
making it unusable.
The following example would put the file
testresults.txt
in a format appropriate for sending via email:
ebs --encrypt --armor --text testresults.txt --user “Jennifer Quino”
This results in an encrypted file named
testresults.txt.asc
.
Encrypting and specifying the output file
To specify an output filename use the
--encrypt --output
option.
Please note the following:
• If
standard input
is used for reading data to encrypt, then the output is written to
standard output
.
You can also specify ‘
--output -
’ to encrypt to standard output.
If no output file is specified for a single input file, E-Business Server creates a file with a
.pgp
or
.asc
extension in the current directory.
If more than one file is used as input, then the output files are written to the current directory or the
directory specified by
--output
.
If more than one file is used as input, and no output file is specified, then an appropriate filename is used
for each file and they are all written to the current directory.
If any output filenames already exist in the output directory, you are prompted for confirmation that you
want to replace the existing file. If you do not want to be prompted, and instead want E-Business Server to
automatically overwrite the existing file, use the
--overwrite
option.