请教比较好用(主流)的md5库
 发布于 9 年前  作者 ajaxQWER  7749 次预览  最后一次回复是 9 年前  来自 问答 

自己在做一个项目玩,以前的密码从来没有考虑过加密问题,现在想做md5加密,不知道https://github.com/blueimp/JavaScript-MD5/blob/master/README.md这个框架是不是大家都在用的,或求介绍一个:)

4 回复
CoderIvan

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

ajaxQWER

@CoderIvan 谢谢,已经使用了 自豪地采用 CNodeJS ionic