siwi-hash
v1.0.2
Published
siwi-hash md5 sha1 sha256 sha512
Downloads
4
Maintainers
Readme
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