Encrypts an array of bytes using the given passphrase.
@param clearText the clear text data to encrypt
@param passphrase the passphrase with with to encrypt the data
@param algorithm the SymmetricKeyAlgorithm to use
@return a byte array containing the encrypted data
@throws IOException if an I/O error occurs
@throws CryptoException if the data could not be encrypted
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.