跳到主要内容
CNode
查看回复

回复 (4)

A
alsotang#310 年前
C
CoderIvan#110 年前

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

参与回复

登录后即可参与回复。登录