@noble/ciphers breaking changes
Updated December 4, 2026
On this page
Latest version 2.4.0, released August 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@noble/ciphers 2.4.0 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 - 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 - 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
@noble/ciphers 2.3.0 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
chacha.js:__TESTS
Was const __TESTS: {chachaCore_small: typeof chachaCore_small; chachaCore: typeof chachaCore;}; now const __TESTS: {chachaCore: typeof chachaCore;}. npmjs.com - Signature changed
chacha.js:chacha20poly1305
Was const chacha20poly1305: TRet<ARXCipher>; now const chacha20poly1305: TRet<ARXCipher & {withAAD: true;}>. npmjs.com - Signature changed
chacha.js:xchacha20poly1305
Was const xchacha20poly1305: TRet<ARXCipher>; now const xchacha20poly1305: TRet<ARXCipher & {withAAD: true;}>. npmjs.com - Signature changed
utils.js:abool
Was function abool(b: boolean): void; now function abool(value: boolean, title?: string): boolean. npmjs.com
And 6 more in this version. Sign up to see every change
@noble/ciphers 2.2.0 breaking changes
- Removed
_poly1305.js:wrapConstructorWithKey
wrapConstructorWithKey was removed in @noble/ciphers 2.2.0 npmjs.com - Removed
_polyval.js:CHashPV
CHashPV was removed in @noble/ciphers 2.2.0 npmjs.com - 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 - Signature changed
_arx.js:_XorStreamPRG.addEntropy
Was addEntropy(seed: Uint8Array): void; now addEntropy(seed: TArg<Uint8Array>): void. npmjs.com - 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 - Signature changed
_arx.js:_XorStreamPRG.randomBytes
Was randomBytes(len: number): Uint8Array; now randomBytes(len: number): TRet<Uint8Array>. npmjs.com - 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 - 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 - 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 - 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
And 95 more in this version. Sign up to see every change
@noble/ciphers 2.1.1 breaking changes
- Signature changed
aes.js:siv
Was const siv: typeof gcmsiv; now const siv: () => never. npmjs.com - 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
@noble/ciphers 2.0.1 breaking changes
- Removed
chacha
Extension-less imports such as /chacha no longer work. Switch to the .js form, such as /chacha.js. github.com
@noble/ciphers 2.0.0 breaking changes
- Removed
_assert
The _assert module is removed; use utils instead. github.com - Removed
_micro
The _micro module is removed and no replacement is named. github.com - Removed
ahash
The ahash helper is removed from utils. github.com - Removed
crypto
The crypto module is removed; use webcrypto instead. github.com - Removed
managedNonce
managedNonce moved to utils.js; import it from there. github.com - Removed
randomBytes
randomBytes and managedNonce moved to utils.js; import them from there. github.com - Removed
toBytes
The toBytes helper is removed from utils; abytes is the new helper. github.com - 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 - Behavior changed
All module paths must now include the .js extension, for example @noble/ciphers/aes.js instead of @noble/ciphers/aes. github.com - Behavior changed
ghash
Hash inputs must be Uint8Array; strings are no longer accepted. github.com
And 2 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.