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.
- Host: GitHub
- URL: https://github.com/marvinjwendt/node-hash-all
- Owner: MarvinJWendt
- License: mit
- Created: 2018-09-19T18:34:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:16:35.000Z (about 3 years ago)
- Last Synced: 2025-04-05T11:44:14.551Z (10 months ago)
- Topics: crypto, decipher, hash, javascript, md5, module, nodejs, nodejs-modules, npm, sha, shaders
- Language: JavaScript
- Homepage:
- Size: 429 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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