5.23.3 ENCODE
The ENCODE command will PGP encode the contents of specified FROM file.
When encrypting a single column working list is required to supply the list of recipients.
The recipient name can be either a partial userID or the keyID of the recipient's public key.
Syntax:
Command |
Keyword |
Value |
Developer notes |
ENCODE |
FROM |
value |
Required. File Path. |
TO |
value |
Required. File Path. |
|
REPLACE |
*YES |
Optional. Replace existing file. |
|
*NO |
Default. |
||
NAME |
value |
Optional. Literal data name. |
|
*TOFILE |
Use TO file name. |
||
*FROMFILE |
Use FROM file name. |
||
*CONSOLE |
Default. |
||
CIPHER |
*NONE |
Optional. Encryption cipher. |
|
*DES |
|
||
*3DES |
|
||
*IDEA |
|
||
*CAST5 |
Default. |
||
*SAFER |
|
||
*AES-128 |
|
||
*AES-192 |
|
||
*AES-256 |
|
||
*TWOFISH |
|
||
*BLOWFISH |
|
||
ARMORED |
*NO |
ASCII Output. |
|
*YES |
Default. |
||
COMPRESSED |
*NO |
Compress data. |
|
*YES |
Default. |
||
SIGNER |
name:password |
The signer value is comprised of two parts, the name and password in the format name:password. The name can be the keyID or the partial userID of the secret key. |
Example
ENCODE FROM(data.txt) TO(encrypt.asc) REPLACE(*YES) CIPHER(*AES-128)
ARMORED(*YES) COMPRESSED(*YES) SIGNER(C98A1CF5FC4828FB:password) #WRKLST(USERID)