Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
buffer-crc32
Advanced tools
The buffer-crc32 package is a Node.js module for calculating CRC32 checksums of buffers. It's a fast and simple utility for generating checksums of data, which can be useful for verifying the integrity of data being transferred over a network or stored.
Calculate CRC32 checksum
This feature allows you to calculate the CRC32 checksum of a given buffer. The code sample demonstrates how to calculate the checksum of a 'Hello World' string.
const crc32 = require('buffer-crc32');
const buffer = Buffer.from('Hello World');
const checksum = crc32(buffer);
console.log(checksum.toString('hex'));
Update existing checksum with new data
This feature enables you to update an existing checksum with new data. The code sample shows how to calculate the checksum for 'Hello', then update it with ' World' to get the checksum for 'Hello World'.
const crc32 = require('buffer-crc32');
let checksum = crc32(Buffer.from('Hello'));
checksum = crc32(Buffer.from(' World'), checksum);
console.log(checksum.toString('hex'));
The 'crc' package offers a wider range of CRC algorithms, including CRC32. It provides more flexibility compared to buffer-crc32 but might be slightly more complex to use for simple CRC32 calculations.
This package is designed for streaming data and calculating CRC32 checksums on the fly. It's more suited for scenarios where data is being processed in streams, compared to buffer-crc32 which works on buffers.
FAQs
A pure javascript CRC32 algorithm that plays nice with binary data
The npm package buffer-crc32 receives a total of 13,373,876 weekly downloads. As such, buffer-crc32 popularity was classified as popular.
We found that buffer-crc32 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.