Encrypt With Key [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Encrypt With Key
Purpose
Uses a specified encryption key to make text unreadable.
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 encrypts one or more lines of a file. The purpose of
encryption is to render a file or selected portions of a file unreadable,
while preserving the integrity of the file contents. This function
enables you to secure text by preventing other users from reading a
portion of a file or an entire file.
This command functions similarly to the Encrypt command, except you can
specify a password key when executing this command instead of setting the
encryption key separately using the Set Encryption Key command. If you
use the Encrypt With Key command, you must supply the correct key in
order to decrypt the encrypted text.
This command is especially useful for encrypting only one portion of the
text or the entire file. If you want to encrypt several blocks of text,
it is preferable to first set the encryption key using the Set Encryption
Key command, then use the Encrypt command to selectively encrypt blocks
of text.
Procedures
To encrypt a line of text with a specified password key:
1. Move the cursor to a position anywhere on the line to be
encrypted.
2. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
3. Type encrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
4. Type an alphanumeric string not greater than 10 characters in
length. Blank characters are allowed within the string.
5. Press Return. HP EDIT stores the string you just specified as the
encryption key and encrypts the line.
To encrypt more than one line of text with a specified password key:
1. Move the cursor to a position anywhere on the first line of the
text block to be encrypted.
[REV BEG]
2. Type a count or select a block. This value represents the number
of lines that HP EDIT is to encrypt.[REV END]
3. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
4. Type encrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
5. Type an alphanumeric string not greater than 10 characters in
length. Blank characters are allowed within the string.
6. Press Return. HP EDIT stores the string you just specified as the
encryption key and encrypts the line.
Example
To encrypt the following line with a specified password key:
This line will be encrypted
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 encrypt with key beside the prompt and press Return. HP EDIT
displays the prompt Key: on the message line.
4. Type an alphanumeric string of up to 10 characters, such as my
key, and press Return. HP EDIT encrypts the line as shown:
m/.k9mcvTx9Yx|P0Vzkg~mt|Nw2]#sO
Related Commands
Decrypt
Decrypt With Key
Encrypt
Set Encryption Key
MPE/iX 5.0 Documentation