
Security News
Re-Enabled GitHub Actions Expose Thousands of Repositories to Mini Shai-Hulud
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.
@aws-sdk/checksums
Advanced tools
Checksum algorithms and flexible checksums middleware for the AWS SDK
Checksum algorithms and flexible checksums middleware for the AWS SDK.
The following checksum API symbols are available.
import { Sha1, Sha256 } from "@aws-sdk/checksums/sha";
import { Md5 } from "@aws-sdk/checksums/md5";
import { Crc32, Crc32c, Crc64Nvme } from "@aws-sdk/checksums/crc";
Each follows an identical interface, the Smithy Checksum interface:
interface Checksum {
update(chunk: Uint8Array): void;
digest(): Promise<Uint8Array>;
reset();
}
Bytes go into update, and the checksums comes out of digest.
Where possible, digest is non-destructive. That means you can digest to get a checksum, and then keep adding more data with update.
Some checksums accept initial seeds.
| Algorithm | Digest length | Non-destructive digest | Accepts secret (HMAC) |
|---|---|---|---|
| Sha256 | 32 bytes | ✅ (only without secret) | ✅ |
| Sha1 | 20 bytes | ✅ (only without secret) | ✅ |
| Md5 | 16 bytes | ✅ | ❌ |
| Crc32 | 4 bytes | ✅ | ❌ |
| Crc32c | 4 bytes | ✅ | ❌ |
| Crc64Nvme | 8 bytes | ✅ | ❌ |
By default, the canonically named checksum algorithms (above) will use the best implementation for your bundling or runtime environment, some of which use natively available implementations. All checksums have a pure JavaScript fallback. To use a specific implementation, you can use the following implementation-specific import symbols, but this is not recommended.
import {
// SHA1
Sha1Js,
Sha1Node,
Sha1WebCrypto,
// SHA256
Sha256Js,
Sha256Node,
} from "@aws-sdk/checksums/sha";
import { Md5Js, Md5Node } from "@aws-sdk/checksums/md5";
import {
// CRC32
Crc32Js,
Crc32Node,
// CRC32C
Crc32cJs,
Crc32cNode,
//CRC32NVME
Crc64Nvme,
Crc64NvmeJs,
} from "@aws-sdk/checksums/crc";
Sha1Node, Sha256Node, and Md5Node use the node:crypto lib.
Sha1WebCrypto uses subtle crypto but falls back to JS when buffered data exceeds 8 MB.
Crc32Node uses node:zlib.
Crc64Nvme uses the AWS CRT if you load @aws-sdk/crc64-nvme-crt.
The AWS SDK uses Sha256 for Signature V4 signing, Crc32 for event stream message integrity, and all other algorithms are used for data integrity checksumming.
FAQs
Checksum algorithms and flexible checksums middleware for the AWS SDK
The npm package @aws-sdk/checksums receives a total of 12,038,530 weekly downloads. As such, @aws-sdk/checksums popularity was classified as popular.
We found that @aws-sdk/checksums 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.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.

Research
/Security News
The compromise affects MemTensor's MemOS, an open source memory framework for large language models (LLMs) and AI agents. Both npm package @memtensor/memos-cloud-openclaw-plugin and the PyPI package MemoryOS are compromised. They drop cross-platform Go binaries that exfiltrate developer secrets.