org.bouncycastle.openpgp.examples

Class KeyBasedFileProcessor

public class KeyBasedFileProcessor extends Object

A simple utility class that encrypts/decrypts public key based encryption files.

To encrypt a file: KeyBasedFileProcessor -e [-a|-ai] fileName publicKeyFile.
If -a is specified the output file will be "ascii-armored". If -i is specified the output file will be have integrity checking added.

To decrypt: KeyBasedFileProcessor -d fileName secretKeyFile passPhrase.

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.

Method Summary
static voidmain(String[] args)

Method Detail

main

public static void main(String[] args)