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.
@aws-crypto/crc32
Advanced tools
Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check
The @aws-crypto/crc32 package is a JavaScript implementation of the CRC32 algorithm, which is used to compute a cyclic redundancy check (CRC) value for a given input. This is useful for error-checking and ensuring the integrity of data.
Calculate CRC32 checksum
This feature allows you to calculate the CRC32 checksum of a given input buffer. The input is a Uint8Array, and the output is a number representing the CRC32 checksum.
const { crc32 } = require('@aws-crypto/crc32');
const checksum = crc32(new Uint8Array([0x00, 0x01, 0x02]));
console.log(checksum);
The buffer-crc32 package is another npm package that provides a similar functionality to @aws-crypto/crc32. It allows for the calculation of CRC32 checksums for buffers. It is a simple and fast implementation, but it is not maintained by a major organization like AWS.
The crc package is a more comprehensive package for calculating CRC checksums. It supports various CRC algorithms, including CRC32. It offers a wider range of functionality compared to @aws-crypto/crc32, which is focused solely on CRC32.
Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check
import { Crc32 } from '@aws-crypto/crc32';
const crc32Digest = (new Crc32).update(buffer).digest()
npm test
FAQs
Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check
The npm package @aws-crypto/crc32 receives a total of 6,732,182 weekly downloads. As such, @aws-crypto/crc32 popularity was classified as popular.
We found that @aws-crypto/crc32 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.