https://github.com/ks3sdk/ks3...html
var hmacSha1 = function(encodedStr, sk) { var hmac = crypto.createHmac('sha1', sk); debug('over') hmac.update(encodedStr); return hmac.digest('base64'); }; var hmacMd5=function(encodedStr,sk){ var hmac = crypto.createHmac('md5', sk); hmac.update(encodedStr); return hmac.digest('base64'); };
http://nodejs.cn/api/crypto.html
https://github.com/ks3sdk/ks3...node