public class ScottTest {
public static void main(String [] args){
Map<String,Object> maps = new HashMap<String,Object>();
maps.put("jsapi_ticket", "sM4AOVdWfPE4DxkXGEs8VMCPGGVi4C3VM0P37wVUCFvkVAy_90u5h9nbSlYy3-Sl-HhTdfl2fzFy1AOcHKP7qg");
maps.put("noncestr", "Wm3WZYTPz0wzccnW");
maps.put("timestamp", "1414587457");
maps.put("url", "http://mp.weixin.qq.com?params=value");
try {
String str = SHA1(maps);
public static void main(String [] args){
Map<String,Object> maps = new HashMap<String,Object>();
maps.put("jsapi_ticket", "sM4AOVdWfPE4DxkXGEs8VMCPGGVi4C3VM0P37wVUCFvkVAy_90u5h9nbSlYy3-Sl-HhTdfl2fzFy1AOcHKP7qg");
maps.put("noncestr", "Wm3WZYTPz0wzccnW");
maps.put("timestamp", "1414587457");
maps.put("url", "http://mp.weixin.qq.com?params=value");
try {
String str = SHA1(maps);