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.
easy-sha256
Advanced tools
A simple way to use SHA256 in the browser and NodeJS. Built in pure JS without any 3rd party libraries or dependencies.
Browser
<script src="https://cdn.trat.chat/sha256.min.js"></script>
NodeJS
npm i easy-sha256
NodeJS
var Sha256 = require("easy-sha256")
console.log(Sha256.hash("abc")) //Logs "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
Browser (include the script tag above in your html)
console.log(Sha256.hash("abc")) //Logs "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
###Advanced Usage
To use sha256 in async mode
Sha256.hash("abc",{async:true}).then(function(hash){
console.log(hash)
})
console.log("hi")
//Logs "hi" First Then "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
###Author
Ryan Trattner
FAQs
A Simple and Easy way to use SHA256 in the browser or in NodeJS
We found that easy-sha256 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.