An open API service indexing awesome lists of open source software.

https://github.com/marvinjwendt/node-hash-all

NodeJS module to hash a string in every available hash and do something with it.
https://github.com/marvinjwendt/node-hash-all

crypto decipher hash javascript md5 module nodejs nodejs-modules npm sha shaders

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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