npm / @noble/ciphers
@noble/ciphers
What changed in @noble/ciphers 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
14 breaking6 security1 deprecations2 new APIs and options3 performance4 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@noble/ciphers 233 changes
Breaking changes 13
Using after after clean now throws.
Output buffers that partially overlap unread input are now rejected.
minLen now enforces the NIST SP 800-38G minimum of 2, alongside the radix**minlen >= 100 requirement.
A new cipher parameter enables AAD support in webcrypto wrappers; passing AAD to a cipher that does not support it now throws instead of being silently ignored.
ahash was removed.
The _assert module was removed; use utils instead.
The crypto module was removed; use webcrypto instead.
The package is now ESM-only; ESM can be loaded from common.js on Node v20.19+.
Hash inputs now accept only Uint8Array; string inputs are prohibited.
The _micro module was removed.
Module imports must include the .js extension; use @noble/ciphers/aes.js instead of @noble/ciphers/aes.
Node v20.19 is now the minimum required version.
toBytes was removed.
Security 5
Corrects AES CTR handling of partial-block tails on big-endian CPUs.
Padding failures now use a generic aes: bad decrypt message, reducing padding-oracle signal.
Corrects polyval tag normalization on big-endian CPUs.
The ctr from the webcrypto submodule uses the correct counter wrapping.
Zeroization is improved.
Deprecations 1
The old
sivexport inaes.jsis deprecated because it was an alias to gcmsiv.
New APIs and options 2
AES-SIV (RFC 5297) is implemented; it is different from AES-GCM-SIV (RFC 8452).
A new abytes utility is available.
Performance 3
Sizing is improved for very large domains.
AES-SIV is 20% faster.
Tree-shaking is improved to reduce bundle sizes.
Behavior and default changes 3
Keys and params are now snapshotted.
The CMAC API is aligned with the other MAC APIs.
Error messages are more descriptive.
Fixes and other changes 6
The package is made Big Endian friendly; all tests pass on s390x.
MAC no longer corrupts oversized outputs.
Compilation issues on TypeScript v6 are fixed.
Byte Array types are fixed to work with TypeScript 5.6 and TypeScript 5.9+, addressing incompatibilities and errors such as TS2345.
managedNonce moved to utils.js.
randomBytes moved to utils.js.
@noble/ciphers 15 changes
Breaking changes 1
AES-GCM now prohibits nonces smaller than 8 bytes.
Security 1
AES errors expose less unnecessary data.
Behavior and default changes 1
This is the first audited version of the package.
Fixes and other changes 2
FF1 type checks are improved.
The package adds support for Node.js 14.