Class 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 Detail

      • 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