Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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 --algorithm sha256 --code hex --input <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
The npm package enigma-hash receives a total of 10 weekly downloads. As such, enigma-hash popularity was classified as not popular.
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 the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.