标签:io ar os sp on cti bs as new
function md5(data) { var Buffer = require("buffer").Buffer; var buf = new Buffer(data); var str = buf.toString("binary"); var crypto = require("crypto"); return crypto.createHash("md5").update(str).digest("hex"); }
解决中文不一致的BUG
标签:io ar os sp on cti bs as new
原文地址:http://my.oschina.net/thmz/blog/345614