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.
@stardazed/adler32
Advanced tools
Compute the Adler-32 checksum of a data stream.
⚠️ Important: This package, like everything in the @stardazed org, is distributed as an ES2015 module and is intended for use in browsers, not in NodeJS per se. Browser-specific types may be used.
yarn add @stardazed/adler32
or
npm install --save @stardazed/adler32
/**
* Compute the Adler-32 checksum of a source.
* This method will do its best to get a correct stream of unsigned bytes out
* of the specified input, but take care when passing in basic arrays.
* You can use `adler32Bytes` for the "I know what I'm doing" version.
* @param data Source data, a string, array, TypedArray or ArrayBuffer
* @param adler Optional seed for the checksum
*/
function adler32(data: string | number[] | TypedArray | DataView | ArrayBuffer, seed?: number): number;
/**
* Compute the Adler-32 checksum of a sequence of unsigned bytes.
* Make very sure that the individual elements in buf are all
* in the UNSIGNED byte range (i.e. 0..255) otherwise the
* result will be indeterminate.
* @param buf Source data, an array-like of unsigned bytes
* @param adler Optional seed for the checksum
*/
function adler32Bytes(buf: ArrayLike<number>, adler?: number): number;
Copyright (C) 1995-2011, 2016 Mark Adler
Converted to TypeScript by Arthur Langereis (@zenmumbler)
from adler32.c, which can be found at:
https://github.com/madler/zlib/blob/master/adler32.c
FAQs
Compute the Adler-32 checksum of a buffer
The npm package @stardazed/adler32 receives a total of 2 weekly downloads. As such, @stardazed/adler32 popularity was classified as not popular.
We found that @stardazed/adler32 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.