
Product
A New Design for GitHub PR Comments
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
async-sha256
Advanced tools
This package contains a async sha256 function using the native crypto API. Calling this function with an 'await' requires the code to be within a async block, see the below examples.
This requires a modern browser that supports native crypto.
npm install --save async-sha256
import sha256 from 'async-sha256';
sha256('matt').then(function(hash) {
console.log(hash);//eslint-disable-line
});
import sha256 from 'async-sha256';
async function doSomething() {
const hash = await sha256('matt');
console.log(hash);//eslint-disable-line
}
doSomething();
FAQs
async sha256 function, using native crypto
The npm package async-sha256 receives a total of 2 weekly downloads. As such, async-sha256 popularity was classified as not popular.
We found that async-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.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.