@retoken/shash
v0.0.1
Published
Hashing made Fast & Simple. Get hash of a Object & String
Downloads
12
Readme
@retoken/shash
Install
$ npm i @retoken/shash
Tests
$ npm test
Example
const shash = require('@retoken/shash')
const options = {
key: 3301,
salt: 33
}
const TEXT = 'Aliase Network'
shash(TEXT, options)
.then(r => console.log('With options:', r))
shash(TEXT)
.then(r => console.log('Without options:', r))
const object = {
firstname: 'Danil',
lastname: 'Shaymurzin'
}
shash(object)
.then(r => console.log('Object:', r))