Decrypt With Key [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Decrypt With Key
Purpose
Uses a specified encryption key to restore encrypted lines to a readable
state.
Default Syntax
None
This command does not have a default key assignment. You can either
assign a key to the command using the Assign Key command or issue the
command using Execute Editor Command.
Description
This command decrypts one or more lines of a file by restoring previously
encrypted text to its original readable state. This command functions
similarly to the Decrypt command, except that HP EDIT prompts you for the
key when you execute the command. The key you provide must match the key
used to encrypt the text. If the two keys match, HP EDIT decrypts the
text.
Note that if you attempt to decrypt text without setting the correct key,
the text may become irreversibly encrypted. If this happens, use Undo
Last Command to cancel the effects of an unsuccessful decrypt, or
preferably text in the same file again and reply yes to the HP EDIT
prompt that asks you if you want to discard changes. This action
effectively cancels the Decrypt command.
This command is especially useful when you want to decrypt only one
portion of the text or the entire file. If you want to decrypt several
blocks of text, it is preferable to first set the encryption key using
the Set Encryption Key command, then use the Decrypt command to
selectively decrypt blocks of text.
Procedures
To decrypt a line of text with the key used to encrypt it:
1. Move the cursor to a position anywhere on the line to be
decrypted.
2. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
3. Type decrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
4. Type the key that you used when you encrypted the file.
5. Press Return. HP EDIT restores the line to its previously
readable state before encryption.
To decrypt more than one line of text:
1. Move the cursor to a position anywhere on the first line of the
text block to be decrypted.
[REV BEG]
2. Either type a count or select a block. This value represents the
number of lines that HP EDIT is to decrypt.[REV END]
3. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
4. Type decrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
5. Type the key that you used to encrypt the line.
6. Press Return. HP EDIT restores the lines to their previously
readable state before encryption.
Example
To decrypt the following line:
3qr5;Ze5gP!Vr,\Z3f'`HwRT!`guVX$mL3UWxm`#e[$iu
1. Move the cursor anywhere on the line as shown.
2. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
3. Type decrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
4. Type the key that you used to encrypt the line.
5. Press Return. HP EDIT uses the key to decrypt the line. If the
keys are the same, HP EDIT restores the line to its previously
readable state before encryption as shown:
This line was unreadable before decryption.
Related Commands
Decrypt
Encrypt
Encrypt With Key
Set Encryption Key
MPE/iX 5.0 Documentation