org.bouncycastle.openpgp.examples
Class KeyBasedFileProcessor
java.lang.Object
|
+--org.bouncycastle.openpgp.examples.KeyBasedFileProcessor
- public class KeyBasedFileProcessor
- extends java.lang.Object
A simple utility class that encrypts/decrypts public key based
encryption files.
To encrypt a file: KeyBasedFileProcessor -e [-a] fileName publicKeyFile.
If -a is specified the output file will be "ascii-armored".
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 void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
KeyBasedFileProcessor
public KeyBasedFileProcessor()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception