1
mingzhi 2014-06-06 14:30:23 +08:00
var md5 = crypto.createHash('md5')
|
2
kfll 2014-06-06 14:40:41 +08:00 via Android 1
http://nodejs.org/docs/latest/api/crypto.html#crypto_hash_digest_encoding
Note: hash object can not be used after digest() method has been called 所以你每次 digest 之后这个 hash 对象就没用了,下次使用需要重新创建 |