Socket
Socket
Sign inDemoInstall

@aws-crypto/crc32

Package Overview
Dependencies
7
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-crypto/crc32

Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check


Version published
Weekly downloads
8.3M
decreased by-0.29%
Maintainers
8
Install size
447 kB
Created
Weekly downloads
 

Package description

What is @aws-crypto/crc32?

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.

What are @aws-crypto/crc32's main functionalities?

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);

Other packages similar to @aws-crypto/crc32

Changelog

Source

5.2.0 (2023-10-16)

Features

  • support ESM artifacts in all packages (#752) (e930ffb)

Readme

Source

@aws-crypto/crc32

Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check

Usage

import { Crc32 } from '@aws-crypto/crc32';

const crc32Digest = (new Crc32).update(buffer).digest()

Test

npm test

FAQs

Last updated on 16 Oct 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc