public static String encryptWithKey(String text, String key) {
		// Create key and cipher
		SecretKeySpec aesKey = new SecretKeySpec(key.getBytes(), "AES");
		Cipher cipher;
		
		// Encrypt the String given in
		try {
			cipher = Cipher.getInstance("AES");
			
			// Encrypt
			cipher.init(Cipher.ENCRYPT_MODE, aesKey);
			byte[] encrypted = cipher.doFinal(text.getBytes());
			
			// Return as a string
			return new String(encrypted);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return "";
	}