code: public static byte[] encrypt(byte[] data, byte[] key) throws Exception{
  		//恢复密钥
  		SecretKey secretKey = new SecretKeySpec(key, "AES");
  		//Cipher完成加密
  		Cipher cipher = Cipher.getInstance("AES");
  		//根据密钥对cipher进行初始化
  		cipher.init(Cipher.ENCRYPT_MODE, secretKey);
  		//加密
  		byte[] encrypt = cipher.doFinal(data);
  		
  		return encrypt;
  	}
docs: 加密
  @throws Exception