The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | /** |
| 2 | * Bun layers for the `effect/crypto` modules. |
| 3 | * |
| 4 | * This module re-exports `NodeCrypto` from the shared Node.js package, so Bun |
| 5 | * programs take every crypto layer from one place: `layerDigest` and |
| 6 | * `layerMac` run on `node:crypto`, `layerKdf` adds Argon2id, and |
| 7 | * `layerSecureRandom`, `layerCipher`, `layerSignature`, `layerKeyAgreement`, |
| 8 | * and `layerKeyWrap` run the core WebCrypto layers. Each layer supplies its own |
| 9 | * `SecureRandom`, and `layer` provides every family at once. |
| 10 | * |
| 11 | * **Gotchas** |
| 12 | * |
| 13 | * - Bun's `node:crypto` lacks ChaCha20-Poly1305, so `layerAead` runs it on the |
| 14 | * pure TypeScript implementation, as `Aead.layerWebCrypto` does. |
| 15 | * - `layerKdf` provides Argon2id from Bun 1.4. On older versions, deriving |
| 16 | * with Argon2id fails with an `Unsupported` reason. |
| 17 | * |
| 18 | * @stability unstable |
| 19 | * @since 1.0.0 |
| 20 | */ |
| 21 | |
| 22 | /** |
| 23 | * @stability unstable |
| 24 | * @since 1.0.0 |
| 25 | */ |
| 26 | export * from "@effect/platform-node-shared/NodeCrypto" |