hash-all

1.0.0 • Public • Published

hash-all

NodeJS module to hash a string in every available hash and do something with it.

Usage

To install the module run: npm i hash-all

To import the module:

const hashAll = require('hash-all')

To run it:

//Log every hash possibility to the console
hashAll.forEachHash('Hello World', (hash, algo) => {
    console.log(`(${algo}) - ${hash}`)
})

//Log every hash you set in a list to the console
app.forEachHashInList('Hello World', ['md5', 'sha1'], (hash, algo) => {
    console.log(`(${algo}) - ${hash}`)
})

//Get every supported hash ('md5, 'sha1', etc..)
hashAll.getHashes()
hashAll.hashes

Package Sidebar

Install

npm i hash-all

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

3.96 kB

Total Files

6

Last publish

Collaborators

  • marvinjwendt