1.3.3 • Published 4 years ago
enigma-hash v1.3.3
enigma-hash
Demystifying hashing, made simple and easy
Contents
Install
yarn add enigma-hash
OR
npm install enigma-hash
Usage
Require in the module
const { hash } = require('enigma-hash')
Hash like below:
const hashValue = hash('Hello World', 'sha256', 'hex')
// hash(input, algorithm, code)
Hash with a key (Hmac) like below:
const hashValue = hash('Hello World', 'sha256', 'hex', 'Some key')
// hash(input, algorithm, code, key)
CLI Tool
Install with:
npm install -g enigma-hash
& simply run with the following:
enigma --alg sha256 --code hex --data <some string to hash>
Contribute
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
MIT