public static byte[] decrypt(byte[] encryptedByteData,char[] password,byte[] salt) throws EncryptionException {
  byte[] saltBytes=new byte[IEncryptionService.CRYPTO_SALT_DEFAULT_LENGTH];
  System.arraycopy(encryptedByteData,0,saltBytes,0,IEncryptionService.CRYPTO_SALT_DEFAULT_LENGTH);
  byte[] cypherText=new byte[encryptedByteData.length - IEncryptionService.CRYPTO_SALT_DEFAULT_LENGTH];
  System.arraycopy(encryptedByteData,IEncryptionService.CRYPTO_SALT_DEFAULT_LENGTH,cypherText,0,encryptedByteData.length - IEncryptionService.CRYPTO_SALT_DEFAULT_LENGTH);
  return decryptData(password,salt,cypherText);
}

public static byte [ ] decrypt ( byte [ ] encryptedByteData , char [ ] password , byte [ ] salt ) throws EncryptionException { byte [ ] saltBytes = new byte [ IEncryptionService . CRYPTO_SALT_DEFAULT_LENGTH ] ; System . arraycopy ( encryptedByteData , 0 , saltBytes , 0 , IEncryptionService . CRYPTO_SALT_DEFAULT_LENGTH ) ; byte [ ] cypherText = new byte [ encryptedByteData . length - IEncryptionService . CRYPTO_SALT_DEFAULT_LENGTH ] ; System . arraycopy ( encryptedByteData , IEncryptionService . CRYPTO_SALT_DEFAULT_LENGTH , cypherText , 0 , encryptedByteData . length - IEncryptionService . CRYPTO_SALT_DEFAULT_LENGTH ) ; return decryptData ( password , salt , cypherText ) ; }
decrypts the given byte data with the given password using the aes algorithm .
