Class PBEFileProcessor
java.lang.Object
org.bouncycastle.openpgp.examples.PBEFileProcessor
A simple utility class that encrypts/decrypts password based
encryption files.
To encrypt a file: PBEFileProcessor -e [-a] fileName passPhrase.
If -a is specified the output file will be "ascii-armored".
To decrypt: PBEFileProcessor -d fileName 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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PBEFileProcessor
public PBEFileProcessor()
-
-
Method Details
-
main
- Throws:
Exception
-