Class CipherFactory

java.lang.Object
net.sourceforge.jbizmo.commons.crypto.CipherFactory

public class CipherFactory extends Object

Factory that provides encryption and decryption ciphers. Note that algorithms may not use padding as files are corrupt after download.

Copyright 2010 (C) by Martin Ganserer

Version:
1.0.0
Author:
Martin Ganserer
  • Constructor Details

    • CipherFactory

      public CipherFactory(String secret)
      Constructor
      Parameters:
      secret -
  • Method Details

    • getEncryptionCipher

      public Cipher getEncryptionCipher() throws Exception
      Returns:
      an encryption cipher
      Throws:
      Exception - if the cipher could not be created
    • getDecryptionCipher

      public Cipher getDecryptionCipher() throws Exception
      Returns:
      a decryption cipher
      Throws:
      Exception - if the cipher could not be created