code: public static String encrypt(String key, String content)
      {
          try
          {
              return ByteUtilities.encode(createAesEncryptionCipher(key).doFinal(content.getBytes(StandardCharsets.UTF_8)));
          }
          catch (Exception e)
          {
              throw new IllegalStateException("Error occurred encrypting data", e);
          }
      }
docs: Get hex String of content String encrypted.