请教比较好用(主流)的md5库
发布于 7 年前 作者 ajaxQWER 6965 次浏览 来自 问答

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

4 回复

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

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

@alsotang 谢谢斑竹

回到顶部