package com.ijourney.cloud.third.know.base.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ijourney.cloud.core.common.utils.DateUtils;
import org.apache.commons.codec.digest.DigestUtils;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.util.*;
public class SignatureUtil {
public static String sign(String data,String signDate,String appId) throws Exception {
System.out.println("default charset:"+Charset.defaultCharset().name());
System.out.println("clientId:"+appId);
System.out.println("signDate:"+signDate);
System.out.println("data:"+URLEncoder.encode(data,"UTF-8"));
HashMap<String, String> map = new
SignatureUtil接口签名工具类
最新推荐文章于 2023-11-03 17:19:29 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)