siwi-md5

nodejs MD5

Usage no npm install needed!

<script type="module">
  import siwiMd5 from 'https://cdn.skypack.dev/siwi-md5';
</script>

README

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