org.bouncycastle.openpgp.examples
public class KeyBasedLargeFileProcessor extends Object
To encrypt a file: KeyBasedLargeFileProcessor -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: KeyBasedLargeFileProcessor -d fileName secretKeyFile passPhrase.
Note 1: 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 2: this example generates partial packets to encode the file, the output it generates will not be readable by older PGP products or products that don't support partial packet encoding.
Method Summary | |
---|---|
static void | main(String[] args) |