---
title: "@noble/ciphers 2.4.0 Breaking Changes on npm | Since.dev"
description: "What each @noble/ciphers release removed, renamed or changed: 139 breaking changes in 6 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@noble/ciphers
last_updated: 2026-12-04
---

# @noble/ciphers breaking changes

@noble/ciphers 2.4.0 (August 27, 2026) is its newest release with breaking changes, 3 of them. The first: PRG now throws when used after being cleaned in @noble/ciphers 2.4.0. Every breaking API change we have recorded in @noble/ciphers on npm: 139 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.4.0`, released August 27, 2026. [Source repository](https://github.com/paulmillr/noble-ciphers)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [2.4.0](#v-2-4-0): 127 breaking changes in 5 versions.

## @noble/ciphers 2.4.0 breaking changes

@noble/ciphers 2.4.0, released August 27, 2026: 3 breaking changes.

- **Behavior changed**  

Using a PRG instance after calling clean now throws an error. Code that reuses a PRG after cleaning it must create a new instance. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.4.0)
- **Behavior changed**  

Output buffers that partially overlap unread input are now rejected instead of being processed. Code that passes overlapping buffers must use separate buffers. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.4.0)
- **Behavior changed**  

Keys and params passed to Webcrypto are now copied at call time, so later changes to those objects no longer affect the operation. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.4.0)

## @noble/ciphers 2.3.0 breaking changes

@noble/ciphers 2.3.0, released August 8, 2026: 16 breaking changes.

- **Behavior changed**  

Padding failures during decryption now surface as a generic 'aes: bad decrypt' error instead of a padding-specific message. Code that matches on the old message must be updated. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.3.0)
- **Behavior changed**  

Passing AAD to a cipher that does not support it now throws 'AAD not supported' instead of silently ignoring it. Applies to native ciphers and webcrypto wrappers via a new withAAD cipher param. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.3.0)
- **Behavior changed** `FF1`  

FF1 minLen now enforces the NIST SP 800-38G minimum of 2 in addition to radix\*\*minlen >= 100, so inputs that previously passed may now be rejected. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.3.0)
- **Signature changed** `aes.js:aessiv`  

Was const aessiv: TRet<((key: TArg\<Uint8Array>, ...AAD: TArg\<Uint8Array\[\]>) => Cipher) & {blockSize: number; tagLength: number;}>; now const aessiv: TRet<((key: TArg\<Uint8Array>, ...AAD: TArg\<Uint8Array\[\]>) => Cipher) & {blockSize: number... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `aes.js:gcm`  

Was const gcm: TRet<((key: TArg\<Uint8Array>, nonce: TArg\<Uint8Array>, AAD?: TArg\<Uint8Array>) => Cipher) & {blockSize: number; nonceLength: number; tagLength: number; varSizeNonce: true;}>; now const gcm: TRet<((key: TArg\<Uint8Array>... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `aes.js:gcmsiv`  

Was const gcmsiv: TRet<((key: TArg\<Uint8Array>, nonce: TArg\<Uint8Array>, AAD?: TArg\<Uint8Array>) => Cipher) & {blockSize: number; nonceLength: number; tagLength: number; varSizeNonce: true;}>; now const gcmsiv: TRet<((key... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `chacha.js:__TESTS`  

Was const \_\_TESTS: {chachaCore_small: typeof chachaCore_small; chachaCore: typeof chachaCore;}; now const \_\_TESTS: {chachaCore: typeof chachaCore;}. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `chacha.js:chacha20poly1305`  

Was const chacha20poly1305: TRet\<ARXCipher>; now const chacha20poly1305: TRet\<ARXCipher & {withAAD: true;}>. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `chacha.js:xchacha20poly1305`  

Was const xchacha20poly1305: TRet\<ARXCipher>; now const xchacha20poly1305: TRet\<ARXCipher & {withAAD: true;}>. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)
- **Signature changed** `utils.js:abool`  

Was function abool(b: boolean): void; now function abool(value: boolean, title?: string): boolean. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.3.0)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @noble/ciphers 2.2.0 breaking changes

@noble/ciphers 2.2.0, released April 11, 2026: 105 breaking changes.

- **Removed** `_poly1305.js:wrapConstructorWithKey`  

wrapConstructorWithKey was removed in @noble/ciphers 2.2.0 [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Removed** `_polyval.js:CHashPV`  

CHashPV was removed in @noble/ciphers 2.2.0 [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Behavior changed** `webcrypto.ctr`  

The counter wrapping in ctr from the webcrypto submodule was corrected, so output can differ from earlier versions when the counter wraps. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.2.0)
- **Signature changed** `_arx.js:_XorStreamPRG.addEntropy`  

Was addEntropy(seed: Uint8Array): void; now addEntropy(seed: TArg\<Uint8Array>): void. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:_XorStreamPRG.constructor`  

Was constructor(cipher: XorStream, blockLen: number, keyLen: number, nonceLen: number, seed: Uint8Array); now constructor(cipher: TArg\<XorStream>, blockLen: number, keyLen: number, nonceLen: number, seed: TArg\<Uint8Array>). [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:_XorStreamPRG.randomBytes`  

Was randomBytes(len: number): Uint8Array; now randomBytes(len: number): TRet\<Uint8Array>. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:CipherCoreFn`  

Was type CipherCoreFn = (sigma: Uint32Array, key: Uint32Array, nonce: Uint32Array, output: Uint32Array, counter: number, rounds?: number) => void; now type CipherCoreFn = (sigma: TArg\<Uint32Array>, key: TArg\<Uint32Array>, nonce... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:createCipher`  

Was function createCipher(core: CipherCoreFn, opts: CipherOpts): XorStream; now function createCipher(core: TArg\<CipherCoreFn>, opts: TArg\<CipherOpts>): TRet\<XorStream>. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:createPRG`  

Was const createPRG: (cipher: XorStream, blockLen: number, keyLen: number, nonceLen: number) => XorPRG; now const createPRG: (cipher: TArg\<XorStream>, blockLen: number, keyLen: number, nonceLen: number) => TRet\<XorPRG>. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)
- **Signature changed** `_arx.js:ExtendNonceFn`  

Was type ExtendNonceFn = (sigma: Uint32Array, key: Uint32Array, input: Uint32Array, output: Uint32Array) => void; now type ExtendNonceFn = (sigma: TArg\<Uint32Array>, key: TArg\<Uint32Array>, input: TArg\<Uint32Array>, output... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.2.0)

And 95 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @noble/ciphers 2.1.1 breaking changes

@noble/ciphers 2.1.1, released December 7, 2025: 2 breaking changes.

- **Signature changed** `aes.js:siv`  

Was const siv: typeof gcmsiv; now const siv: () => never. [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.1.1)
- **Signature changed** `aes.js:unsafe`  

Was const unsafe: {expandKeyLE: typeof expandKeyLE; expandKeyDecLE: typeof expandKeyDecLE; encrypt: typeof encrypt; decrypt: typeof decrypt; encryptBlock: typeof encryptBlock; decryptBlock: typeof decryptBlock; ctrCounter: typeof... [npmjs.com](https://www.npmjs.com/package/@noble/ciphers/v/2.1.1)

## @noble/ciphers 2.0.1 breaking changes

@noble/ciphers 2.0.1, released September 22, 2025: 1 breaking change.

- **Removed** `chacha`  

Extension-less imports such as /chacha no longer work. Switch to the .js form, such as /chacha.js. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.1)

## @noble/ciphers 2.0.0 breaking changes

@noble/ciphers 2.0.0, released August 25, 2025: 12 breaking changes.

- **Removed** `_assert`  

The \_assert module is removed; use utils instead. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `_micro`  

The \_micro module is removed and no replacement is named. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `ahash`  

The ahash helper is removed from utils. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `crypto`  

The crypto module is removed; use webcrypto instead. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `managedNonce`  

managedNonce moved to utils.js; import it from there. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `randomBytes`  

randomBytes and managedNonce moved to utils.js; import them from there. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Removed** `toBytes`  

The toBytes helper is removed from utils; abytes is the new helper. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Behavior changed**  

The package ships only ESM now and Node v20.19 is the minimum version. Code loading it from CommonJS must use a runtime that supports loading ESM from CommonJS. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Behavior changed**  

All module paths must now include the .js extension, for example @noble/ciphers/aes.js instead of @noble/ciphers/aes. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)
- **Behavior changed** `ghash`  

Hash inputs must be Uint8Array; strings are no longer accepted. [github.com](https://github.com/paulmillr/noble-ciphers/releases/tag/2.0.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [@noble/curves](https://since.dev/packages/npm/@noble/curves.md)
- [@noble/ed25519](https://since.dev/packages/npm/@noble/ed25519.md)
- [@noble/hashes](https://since.dev/packages/npm/@noble/hashes.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
