Class PBEFileProcessor

java.lang.Object
org.bouncycastle.openpgp.examples.PBEFileProcessor

public class PBEFileProcessor extends Object
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 Details

    • PBEFileProcessor

      public PBEFileProcessor()
  • Method Details