All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.riversoft.weixin.pay.util.SignatureUtil Maven / Gradle / Ivy

The newest version!
package com.riversoft.weixin.pay.util;

import com.google.common.base.Joiner;
import com.riversoft.weixin.common.util.MD5;

import java.util.Map;

/**
 * Created by exizhai on 12/1/2015.
 */
public class SignatureUtil {

    public static String sign(Map map, String key){
        String str = Joiner.on("&").withKeyValueSeparator("=").join(map);
        str += "&key=" + key;
        return MD5.md5Hex(str).toUpperCase();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy