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 Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CipherFactory
public CipherFactory(String secret)
Constructor
- Parameters:
secret -
-
Method Details
-
getEncryptionCipher
- Returns:
- an encryption cipher
- Throws:
Exception - if the cipher could not be created
-
getDecryptionCipher
- Returns:
- a decryption cipher
- Throws:
Exception - if the cipher could not be created