public class SignedFileProcessor
extends java.lang.Object
To sign a file: SignedFileProcessor -s [-a] fileName secretKey passPhrase.
If -a is specified the output file will be "ascii-armored".
To decrypt: SignedFileProcessor -v fileName publicKeyFile.
Note: this example will silently overwrite files, nor does it pay any attention to the specification of "_CONSOLE" in the filename. It also expects that a single pass phrase will have been used.
Note: the example also makes use of PGP compression. If you are having difficulty getting it to interoperate with other PGP programs try removing the use of compression first.
Constructor and Description |
---|
SignedFileProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |