unstale

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

@unstale/cli on npm

@noble/ciphers 233 changes

Breaking changes 13

  • Using after after clean now throws.

    2.4.0release notes

  • Output buffers that partially overlap unread input are now rejected.

    2.4.0release notes

  • minLen now enforces the NIST SP 800-38G minimum of 2, alongside the radix**minlen >= 100 requirement.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • ahash was removed.

    2.0.0release notes

  • The _assert module was removed; use utils instead.

    2.0.0release notes

  • The crypto module was removed; use webcrypto instead.

    2.0.0release notes

  • The package is now ESM-only; ESM can be loaded from common.js on Node v20.19+.

    2.0.0release notes

  • Hash inputs now accept only Uint8Array; string inputs are prohibited.

    2.0.0release notes

  • The _micro module was removed.

    2.0.0release notes

  • Module imports must include the .js extension; use @noble/ciphers/aes.js instead of @noble/ciphers/aes.

    2.0.0release notes

  • Node v20.19 is now the minimum required version.

    2.0.0release notes

  • toBytes was removed.

    2.0.0release notes

Security 5

  • Corrects AES CTR handling of partial-block tails on big-endian CPUs.

    2.3.0release notes

  • Padding failures now use a generic aes: bad decrypt message, reducing padding-oracle signal.

    2.3.0release notes

  • Corrects polyval tag normalization on big-endian CPUs.

    2.3.0release notes

  • The ctr from the webcrypto submodule uses the correct counter wrapping.

    2.2.0release notes

  • Zeroization is improved.

    2.2.0release notes

Deprecations 1

  • The old siv export in aes.js is deprecated because it was an alias to gcmsiv.

    2.1.1release notes

New APIs and options 2

  • AES-SIV (RFC 5297) is implemented; it is different from AES-GCM-SIV (RFC 8452).

    2.1.1release notes

  • A new abytes utility is available.

    2.0.0release notes

Performance 3

Behavior and default changes 3

Fixes and other changes 6

  • The package is made Big Endian friendly; all tests pass on s390x.

    2.2.0release notes

  • MAC no longer corrupts oversized outputs.

    2.2.0release notes

  • Compilation issues on TypeScript v6 are fixed.

    2.2.0release notes

  • Byte Array types are fixed to work with TypeScript 5.6 and TypeScript 5.9+, addressing incompatibilities and errors such as TS2345.

    2.2.0release notes

  • managedNonce moved to utils.js.

    2.0.0release notes

  • randomBytes moved to utils.js.

    2.0.0release notes

@noble/ciphers 15 changes

Breaking changes 1

  • AES-GCM now prohibits nonces smaller than 8 bytes.

    1.0.0release notes

Security 1

Behavior and default changes 1

  • This is the first audited version of the package.

    1.0.0release notes

Fixes and other changes 2