Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

digestish

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digestish

Cross-platform SHA hash digests.

Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

digestish

Cross-platform SHA hash digests.

This library produces digest hashes for any binary type or string with a very low footprint and impact on bundle size in browsers.

It also works in Node.js but still restricts itself to the hash types supported in the browser without external dependencies.

let hash = digest('hello world') // defaults to sha256
assert(hash instanceof ArrayBuffer)

// Accepts any binary type
hash = digest(new Uint8Array(20))

// Supports SHA2 256, 384 and 512
hash = digest('hello world', 'SHA-512')

FAQs

Package last updated on 17 Jul 2019

Did you know?

Socket

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.

Install

Related posts