Class CryptoStreamFactoryTemplate

  • All Implemented Interfaces:
    CryptoStreamFactory
    Direct Known Subclasses:
    CryptoStreamFactoryImpl

    public abstract class CryptoStreamFactoryTemplate
    extends Object
    implements CryptoStreamFactory
    Concrete factory for creating encrypting/decrypting streams. The implementation uses the JCA (Java Crypto Extension) supplied by SUN (using SunJCE 1.42). The implementation uses as PBEWithMD5AndDES for encryption which should be sufficent for most applications. The implementation also supplies a default password in the case that the programmer don't want to have additional hassles. It is easy to reengineer the password being used but much better than a hard-coded password in the application. The code uses parts from Markus Hahn's Blowfish library found at http://blowfishj.sourceforge.net/
    Author:
    Siegfried Goeschl , Markus Hahn