Java Components



This library includes an abstract class CryptoFactory. This class should be implemented in your program to provide a header and some configuration information. You can then call getEncryptedStream() and getDecryptedStream() to encrypt and decrypt data. The format of the encrypted stream includes a header (which allows you to identify the data format), and optional date stamp, and a salt value (all unencrypted in the preamble). Next there is a canary value (encrypted), which allows the program to verify that decryption has been successful. After this is the encrypted contents of whatever you pass into the output stream.

You can specify the encryption algorithms used (allowing any algorithm used in the JCE library), although by default this is AES.