Option | Description |
-K <keyring dir> | Specifies the directory containing the gpg keyring files. These must
be called pubring.gpg and secring.gpg. This should be sufficient for general use with gpg compatibility.
Use the -pkr and -skr options to specify particular files. Using this option will generally require the -P
option when processing encrypted files. |
-skr <secretkeyring file> | Specifies the file containing the gpg secret keyring file.
This must be the full path to the file. Using this option will generally require the -P option. |
-pkr <publickeyring file> | Specifies the file containing the gpg public keyring file.
This must be the full path to the file. |
-P <passphrase> | Specifies the passphrase to unlock the secret keyring file. |
-pbe <passphrase> | Specifies the passphrase to decrypt the file using the PGP PBE method.
(NOT TESTED) |
filename | The filename is the file to process. This is required |
Option | Description |
-e[a] | Encrypt [with ascii armour] |
-d | Decrypt |
-s | Sign (NOT IMPLEMENTED) |
-v | Verify (REQUIRES MORE TESTING) |
-K <keyring dir> | Specifies the directory containing the gpg keyring files. These must
be called pubring.gpg and secring.gpg. This should be sufficient for general use with gpg compatibility.
Use the -pkr and -skr options to specify particular files. Using this option will generally require the -P
option when processing encrypted files. |
-skr <secretkeyring file> | Specifies the file containing the gpg secret keyring file.
This must be the full path to the file. Using this option will generally require the -P option. |
-pkr <publickeyring file> | Specifies the file containing the gpg public keyring file.
This must be the full path to the file. |
-P <passphrase> | Specifies the passphrase to unlock the secret keyring file. |
-pbe <passphrase> | Specifies the passphrase to decrypt the file using the PGP PBE method.
(NOT TESTED) |
-R <recipient> | Specifies the recipient of the encrypted message. This is normally the
email address of the recipient, however the matching is done using String.indexOf(), so any fragment that is
part of the user id attribute string for the key should work. |
-mdc | If this option is specified, a PGP MDC (modification detection code) packet is added to the
encrypted file. (So, use this with the -e option).The MDC packet contains a SHA-1 digest of the plaintext for comparison
with the decrypted plaintext. |
filename | The filename is the file to process. This is required |