Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
enigma-hash
Advanced tools
Demystifying hashing, made simple and easy
yarn add enigma-hash
OR
npm install enigma-hash
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)
Parameter | Description | Type | Options | Default Value |
---|---|---|---|---|
Input | Value you want to Hash | Any | n/a | " " |
Algorithm | Algorithm you want to hash data with | String | sha256 / sha512 | sha256 |
Code | Encoding you want hash to return with | String | hex / latin1 / base64 | hex |
Key | Key used to encrypt data | String | Any | No key |
Install with:
npm install -g enigma-hash
& simply run with the following:
enigma --alg sha256 --code hex --data <some string to hash>
Contributions are welcome!
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Or open up a issue.
MIT
FAQs
Demystifying the hashing of data
We found that enigma-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.