McAfee MEJCAE-AM-DA Product Guide - Page 62

Encrypting and Decrypting, Exchanging encrypted information, Getting the recipient’s public key

Page 62 highlights

8 Encrypting and Decrypting Exchanging encrypted information This chapter describes the various E-Business Server options that let you encrypt and decrypt your data. For an overview of encryption and decryption and a description of how E-Business Server performs the two operations, see An Introduction to Cryptography. Getting the recipient's public key Before you encrypt, you need to be sure that you are encrypting with the correct public key. This means you need to check the public key to ensure that it truly belongs to the person to whom you think it belongs. Encrypting the message with the wrong key basically makes it: • Closed to your intended recipient • Open to whomever's key you encrypted it to (possibly an interloper) Verifying that a key belongs to its purported owner is discussed in the section "Validity and trust" on page 46. Encrypting information Encryption is one of the most common operations you will perform with E-Business Serfsver. You can encrypt using any of the following methods: conventional encryption, public key encryption, create a self-decrypting archive (SDA), or create a PGParchive. Encrypting with conventional encryption Encrypting with conventional encryption means encrypting to a particular passphrase instead of to a public key. Conventional encryption is useful in certain situations, like when you're encrypting to yourself; however, the typical problem one encounters with conventional encryption is the difficulty in securely communicating the passphrase to the recipient. For more information on conventional encryption, see An Introduction to Cryptography. ebs --encrypt --conventional To specify a passphrase for conventional encryption, use the --conventional-passphrase modifier. If the passphrase contains spaces, you must enclose the entire string in quotes. ebs --encrypt --conventional [--conventional-passphrase ] Note: If the file you want to encrypt is not in the current directory, then you must also specify the path to the file. The following command encrypts the file secretdocument.txt using the passphrase quick, get a mango. To decrypt the file, the recipient will have to type in the same passphrase. ebs --encrypt --conventional secretdocument.txt --conventional-passphrase "quick, get a mango" This results in an encrypted file named secretdocument.txt.pgp. Note: Exercise caution when using the --passphrase or --conventional-passphrase modifiers. Whenever you enter a passphrase as cleartext on the command line (as in the example above), you risk its interception. For alternative ways to supply E-Business Server with your passphrase, see Alternative ways to work with passphrases on page 72. E-Business Server™ 8.6 Product Guide 60

  • 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
60
8
Encrypting and Decrypting
Exchanging encrypted information
This chapter describes the various E-Business Server options that let you encrypt and decrypt your data.
For an overview of encryption and decryption and a description of how E-Business Server performs the two
operations, see
An Introduction to Cryptography.
Getting the recipient’s public key
Before you encrypt, you need to be sure that you are encrypting with the correct public key. This means you
need to check the public key to ensure that it truly belongs to the person to whom you think it belongs.
Encrypting the message with the wrong key basically makes it:
Closed to your intended recipient
Open to whomever’s key you encrypted it to (possibly an interloper)
Verifying that a key belongs to its purported owner is discussed in the section
“Validity and trust” on page 46
.
Encrypting information
Encryption is one of the most common operations you will perform with E-Business Serfsver. You can encrypt
using any of the following methods: conventional encryption, public key encryption, create a self-decrypting
archive (SDA), or create a PGParchive.
Encrypting with conventional encryption
Encrypting
with
conventional
encryption means encrypting to a particular passphrase instead of to a public
key. Conventional encryption is useful in certain situations, like when you’re encrypting to yourself; however,
the typical problem one encounters with conventional encryption is the difficulty in securely communicating
the passphrase to the recipient.
For more information on conventional encryption, see
An Introduction to Cryptography.
ebs --encrypt --conventional <filename>
To specify a passphrase for conventional encryption, use the
--conventional-passphrase
modifier. If the
passphrase contains spaces, you must enclose the entire string in quotes.
ebs --encrypt --conventional <filename> [--conventional-passphrase <quoted-passphrase>]
Note:
If the file you want to encrypt is not in the current directory, then you must also specify the path to the file.
The following command encrypts the file
secretdocument.txt
using the passphrase
quick, get a mango
. To decrypt the
file, the recipient will have to type in the same passphrase.
ebs --encrypt --conventional secretdocument.txt --conventional-passphrase “quick, get a mango”
This results in an encrypted file named
secretdocument.txt.pgp
.
Note:
Exercise caution when using the
--passphrase
or
--conventional-passphrase
modifiers. Whenever you enter a
passphrase as cleartext on the command line (as in the example above), you risk its interception. For alternative ways to
supply E-Business Server with your passphrase, see
Alternative ways to work with passphrases
on page 72
.