清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
String token = "QDG6eK"; String timeStamp = "1409659589"; String nonce = "263014780"; String echoStr = "P9nAzCzyDtyTWESHep1vC5X9xho/qYX3Zpb4yKa9SKld1DsH3Iyt3tP3zNdtp+4RPcs8TgAE7OaBO+FZXvnaqQ=="; String verifyMsgSig = "5c45ff5e21c57e6ad56bac8758b79b1d9ac89fd3"; def params = [] params.add(token) params.add(timeStamp) params.add(nonce) params.add(echoStr) def messageDigest = java.security.MessageDigest.getInstance("SHA1") messageDigest.update(params.sort().join().getBytes()) println(verifyMsgSig.equals(messageDigest.digest().encodeHex().toString()))