McAfee MEJCAE-AM-DA Product Guide - Page 67

Decrypting information, Viewing the decrypted file, Viewing decrypted plaintext output on your screen

Page 67 highlights

Encrypting and Decrypting Decrypting information In this example, E-Business Server includes the files bar.txt and xyz.txt in the archive, but the file's relative paths are not included. When the archive is decrypted, both files are placed in the current directory and not in foo and abc subdirectories. Decrypting information You decrypt information using the private portion of your key pair (unless you've encrypted using conventional encryption, in which case you decrypt using the correct passphrase). You can decrypt only that information which is encrypted to the corresponding public portion of your key pair. Decrypting with E-Business Server is a matter of specifying the encrypted file's name, as shown in the following syntax. ebs --decrypt You are required to enter a passphrase for your private key or the passphrase used to conventionally encrypt the file. To specify the passphrase for your private key as part of the operation, use --passphrase option as shown in the following syntax: ebs --decrypt --passphrase For example: ebs --decrypt secretdocument.asc --passphrase "quick, get a mango" To specify the passphrase used to conventionally encrypt the file, use the --conventional-passphrase option as shown in the following syntax: ebs --decrypt --conventional-passphrase Viewing the decrypted file When E-Business Server encrypts a plaintext file, it saves the original filename and attaches it to the plaintext before it is compressed and encrypted. When E-Business Server decrypts the ciphertext file, it names the plaintext output file with a name similar to the input ciphertext filename, but drops the extension. You can specify other output results for the decrypted information as described below. Viewing decrypted plaintext output on your screen To view decrypted plaintext output on your screen (similar to the UNIX-style "more" command), without writing the output to a file, use the --secure-viewer modifier when you decrypt: ebs --decrypt --secure-viewer This command instructs E-Business Server to display the decrypted plaintext on your screen, one screen at a time, regardless of whether --secure-viewer was used during encryption. Renaming the decrypted plaintext output file When E-Business Server decrypts a ciphertext file, it names the plaintext output file with a name similar to the input ciphertext filename, but drops the extension. For example, if you decrypt a file named foo.txt.pgp, E-Business Server creates a file named foo.txt. Use the --output option on the command line to specify a more meaningful plaintext filename for the output: ebs --decrypt --output If there are multiple input files, the output files are written to the current directory or to the directory name specified by --output. 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. 65 E-Business Server™ 8.6 Product Guide

  • 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

65
E-Business Server
8.6
Product Guide
Encrypting and Decrypting
Decrypting information
In this example, E-Business Server includes the files
bar.txt
and
xyz.txt
in the archive, but the file’s relative
paths are not included. When the archive is decrypted, both files are placed in the current directory and not
in
foo
and
abc
subdirectories.
Decrypting information
You decrypt information using the private portion of your key pair (unless you’ve encrypted using
conventional encryption, in which case you decrypt using the correct passphrase). You can decrypt only that
information which is encrypted to the corresponding public portion of your key pair.
Decrypting with E-Business Server is a matter of specifying the encrypted file’s name, as shown in the
following syntax.
ebs --decrypt <ciphertext_filename>
You are required to enter a passphrase for your private key or the passphrase used to conventionally encrypt
the file.
To specify the passphrase for your private key as part of the operation, use
--passphrase
option as shown in
the following syntax:
ebs --decrypt <ciphertext_filename> --passphrase <quoted-passphrase>
For example:
ebs --decrypt secretdocument.asc --passphrase “quick, get a mango”
To specify the passphrase used to conventionally encrypt the file, use the
--conventional-passphrase
option
as shown in the following syntax:
ebs --decrypt <ciphertext_filename> --conventional-passphrase <quoted-passphrase>
Viewing the decrypted file
When E-Business Server encrypts a plaintext file, it saves the original filename and attaches it to the
plaintext before it is compressed and encrypted. When E-Business Server decrypts the ciphertext file, it
names the plaintext output file with a name similar to the input ciphertext filename, but drops the extension.
You can specify other output results for the decrypted information as described below.
Viewing decrypted plaintext output on your screen
To view decrypted plaintext output on your screen (similar to the UNIX-style “more” command), without
writing the output to a file, use the
--secure-viewer
modifier when you decrypt:
ebs --decrypt --secure-viewer <ciphertext_filename>
This command instructs E-Business Server to display the decrypted plaintext on your screen, one screen at
a time, regardless of whether
--secure-viewer
was used during encryption.
Renaming the decrypted plaintext output file
When E-Business Server decrypts a ciphertext file, it names the plaintext output file with a name similar to
the input ciphertext filename, but drops the extension. For example, if you decrypt a file named
foo.txt.pgp
,
E-Business Server creates a file named
foo.txt
.
Use the
--output
option on the command line to specify a more meaningful plaintext filename for the output:
ebs --decrypt <original_ciphertext_filename> --output <new_plaintext_filename>
If there are multiple input files, the output files are written to the current directory or to the directory name
specified by
--output
.
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.