Skip to content

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

License

Notifications You must be signed in to change notification settings

MarvinJWendt/node-hash-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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