You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,10 +62,10 @@ The API follows `@noble/ciphers`'s API for ease of use, you can check their [exa
61
62
-`xchacha20-poly1305`
62
63
- Nonce is always 24 bytes.
63
64
64
-
If key is fixed and nonce is less than 16 bytes, avoid randomly generated nonce.
65
+
If key is fixed and nonce is less than 16 bytes, **avoid randomly generated nonce**.
65
66
66
67
## Known limitations
67
68
68
69
-`xchacha20-poly1305` is implemented with pure JS [`hchacha20`](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha#section-2.2) function and `node:crypto`'s `chacha20-poly1305` on node.
69
-
- Currently (Mar 2025), `node:crypto`'s `chacha20-poly1305` is not supported on deno and[bun](https://github.com/oven-sh/bun/issues/8072), `@noble/ciphers`'s implementation is used on both platforms instead.
70
-
- Some old versions of `deno`[do not support](https://github.com/denoland/deno/discussions/17964#discussioncomment-10917259)**indirect** conditional exports. If you use this library to build another library, client code of your library may fall back to the `node:crypto` implementation and not work properly, specifically `aes-256-gcm` (16 bytes nonce) and `chacha20-poly1305`. If you found such a problem, you need to upgrade deno and run with `--conditions deno` (>=2.4.0) or `--unstable-node-conditions deno`(>=2.3.6,<2.4.0).
70
+
- Currently (Nov 2025), `node:crypto`'s `chacha20-poly1305` is neither supported on [deno](https://github.com/denoland/deno/issues/28411) nor[bun](https://github.com/oven-sh/bun/issues/8072), `@noble/ciphers`'s implementation is used on both platforms instead.
71
+
- Some old versions of `deno`[did not support](https://github.com/denoland/deno/discussions/17964#discussioncomment-10917259)**indirect** conditional exports. If you used this library to build another library, client code of your library might have fell back to the `node:crypto` implementation and would not work properly, specifically `aes-256-gcm` (16 bytes nonce) and `chacha20-poly1305`. If you found such a problem, upgrade deno and run with `--conditions deno` (>=2.4.0) or `--unstable-node-conditions deno`(>=2.3.6,<2.4.0).
0 commit comments