PGPEncryption
Configuration file |
None. Configuration is done directly with a string in field "Config file". |
Class name |
com.ebd.hub.datawizard.postexec.PGPEncryption |
Description
This postexecuter can be used to encrypt data with the PGP method.
Note: For decryption, the preparser PGPDecryption can be used.
Parameters
The string for field "Config file" has the following structure. See examples below.
<pub-key-ring>;<recipient>;<signing>[;<private-key>;<passphrase>][;<format>] |
Parameter |
Description |
pub-key-ring |
Path to the key ring file with the public key of the partner (for encryption). |
recipient |
Email address of the recipient, for whom the encryption is done (with his public key). Note: If the key does not contain an email address, do not enter one here. |
signing |
(true or false). If the file should be signed, the parameter has to be set to true. Note: If signing=false, then private-key and passphrase can be left empty. |
private-key |
(optional) Path to the key ring file with the own private key (for signing). |
passphrase |
(optional) Password for the protection of the keyrings (for the own private key when signing). |
format |
( optional ). If true, then binary. If false, then ASCII armor. Default: true. |
Examples
Encryption without signing:
Struktur |
<pub-key-ring>;<recipient>;<signing> |
Konret |
./conf/public.asc;test@lobster.de;false |
Encryption with signing (with password):
Struktur |
<pub-key-ring>;<recipient>;<signing>;<private-key>;<passphrase> |
Konret |
./conf/public.asc;test@lobster.de;true;./conf/secret.asc;123456 |
Encryption with signing (without password) → Note the two semicolons at the end, which must be set for an empty password:
Struktur |
<pub-key-ring>;<recipient>;<signing>;<private-key>;<passphrase> |
Konret |
./conf/public.asc;test@lobster.de;true;./conf/secret.asc;; |