1.0.2 • Published 6 years ago

siwi-hash v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

node Build Status npm npm Github file size

siwi-hash

md5 sha1 sha256 sha512

install

use npm

npm install siwi-cache

use yarn

yarn add siwi-cache

Example

md5

const Hash = require('siwi-hash')

const hash = new Hash()

class Example {
    constructor() {
        this.init()
    }
    async init () {
        const data = {name: 'siwi', age: 25}
        const res = await hash.md5(data)
        console.log(res)
    }
}

module.exports = new Example()

输出 :be00a2b28f9359b45195866c32ff74a5

sha1 sha256 sha512 参考md5