code: private String aes128WithFirst16Char(String content, String privateKey) throws GeneralSecurityException {
          byte[] crypted = null;
          SecretKeySpec skey = new SecretKeySpec(privateKey.substring(0, 16).getBytes(), "AES");
          Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
          cipher.init(Cipher.ENCRYPT_MODE, skey);
          crypted = cipher.doFinal(content.getBytes());
          return new String(Hex.encodeHex(crypted));
      }
docs: The encryption implement for AES-128 algorithm for BCE password encryption.
  Only the first 16 bytes of privateKey will be used to encrypt the content.
  
  See more detail on
  <a href = "https://bce.baidu.com/doc/BCC/API.html#.7A.E6.31.D8.94.C1.A1.C2.1A.8D.92.ED.7F.60.7D.AF">
  BCE API doc</a>
  
  @param content The content String to encrypt.
  @param privateKey The security key to encrypt.
  Only the first 16 bytes of privateKey will be used to encrypt the content.
  @return The encrypted string of the original content with AES-128 algorithm.
  @throws GeneralSecurityException