CNode
查看回复

回复 (4)

C
CoderIvan#1·10 年前

Nodejs 原生有API

const crypto = require('crypto')

const hash = crypto.createHash('md5')

const value = hash.update(Buffer.from('ivan')).digest('hex')

console.log(value)

https://nodejs.org/dist/latest-v6.x/docs/api/crypto.html#crypto_crypto_createhash_algorithm

A
alsotang#3·10 年前
参与回复
登录后即可参与回复。登录