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
  • Method Details

    • getEncryptionCipher

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

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