Code example for Cipher

Methods: doFinal, init

0
	public byte[] decode(byte[] encodedData, SecretKey aesKey) throws IllegalBlockSizeException,
			BadPaddingException, NoSuchAlgorithmException, 
			NoSuchPaddingException, InvalidKeyException, 
			UnsupportedEncodingException, InvalidKeySpecException { 
		 
		mAESCipher.init(Cipher.DECRYPT_MODE, aesKey);
		byte[] decodedData = mAESCipher.doFinal(encodedData);
		 
		return decodedData;
	} 
 
}