Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

siwi-md5

1.0.2 • Public • Published

node Build Status npm npm Github file size

siwi-md5

nodejs MD5

install

use npm

npm install siwi-md5

use yarn

yarn add siwi-md5

Example

md5

参数 类型 是否必选 含义
data String | Buffer | Object 加密值 字符串或者对象 对象会自动进行 JSON.stringify()
const md5 = require('siwi-md5')
 
class Example {
    constructor() {
        this.init()
    }
    async init () {
        const res = await md5.sign('123')
        console.log(res)
    }
}
 
module.exports = new Example()

输出:202cb962ac59075b964b07152d234b70

Install

npm i siwi-md5

DownloadsWeekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

10.6 kB

Total Files

8

Last publish

Collaborators

  • avatar