Decrypt [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Decrypt
Purpose
Restores encrypted text to its original 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, provided that you specify
the correct encryption key.
If you previously encrypted text with the default key (not recommended
for security purposes), you only need to use this command to decrypt the
text. If you previously encrypted the text with your own password key,
you must specify this key before executing the Decrypt command. If you
do not, the text remains encrypted. To specify the password key, you
execute the Set Encryption Key command and enter the password key that
was originally used to encrypt the text. Refer to the Set Encryption Key
command for information about using this command.
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.
You may alternatively decrypt text and specify the password key in one
step by executing the Decrypt With Key command. Refer to the Decrypt
With Key command for information about using this command.
Procedures
To decrypt a line of text using the default encryption key:
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 beside the prompt and press Return. HP EDIT decrypts
the line.
To decrypt more than one line of text using the default encryption key:
1. Move the cursor to a position anywhere on the first line of the
text block to be decrypted.
[REV BEG]
2. Either specify a numeric value as the count 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 beside the prompt and press Return. HP EDIT decrypts
the lines.
To decrypt a line of text using a non-default encryption key:
1. Execute the Set Encryption Key command and specify the key that
was used to originally encrypt the line.
2. Move the cursor to a position anywhere on the line to be
decrypted.
3. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
4. Type decrypt beside the prompt and press Return. HP EDIT decrypts
the line.
Example
To decrypt the following line with the default key:
m/.kmUx!kq[t.bf,m$|]jzQppWj9OttZw~mssNw2]#wZsG
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 beside the prompt and press Return. HP EDIT decrypts
the line as shown:
This line was unreadable before decryption.
Related Commands
Decrypt With Key
Encrypt
Encrypt With Key
Set Encryption Key
MPE/iX 5.0 Documentation