code: public static String decrypt(String c, String key) {
          try {
              SecretKeySpec skeySpec = new SecretKeySpec(Hex.decodeHex(key.toCharArray()), "AES");
              Cipher cipher = Cipher.getInstance("AES");
              cipher.init(Cipher.DECRYPT_MODE, skeySpec);
              byte[] decoded = cipher.doFinal(Hex.decodeHex(c.toCharArray()));
              return new String(decoded);
          } catch (final Exception e) {
              logger.warn("Could not decrypt string", e);
              return null;
          }
      }
docs: Decrypts a string encrypted by {@link #encrypt} method.
  
  @param c   The encrypted HEX string.
  @param key The  key.
  @return The decrypted string.