{"_id":"@apislash/cryptobox-web","_rev":"4-f6840e4f24e934634bf8ecd11e97ee04","name":"@apislash/cryptobox-web","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@apislash/cryptobox-web","version":"1.0.0","license":"MIT","_id":"@apislash/cryptobox-web@1.0.0","maintainers":[{"name":"jantheon","email":"vonhara@gmail.com"}],"dist":{"shasum":"687be5aaf943a91b826fe7e4ba86918b531680a5","tarball":"https://registry.npmjs.org/@apislash/cryptobox-web/-/cryptobox-web-1.0.0.tgz","fileCount":9,"integrity":"sha512-lGgApYooTVvS6OXV16Erw6fF5I6hupPtCmv8j1LonD0R00alFotWwWPBQ76Blmm6iO9T/5wE807lHSvpND318w==","signatures":[{"sig":"MEQCIDj7IAGH3JVJw6Z0/j/rZkhIQWRtc2K3rHnvQd8c+Yv0AiAux6qWhrzsWY5vVvujPw+f14uDvgSoYEW+Bp4xnlXjCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66087},"main":"dist/index.cjs","type":"module","_from":"file:apislash-cryptobox-web-1.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"pnpm exec vitest run --passWithNoTests","build":"pnpm exec tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --out-dir dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"jantheon","email":"vonhara@gmail.com"},"_resolved":"/tmp/d0f5e8247ab80f2c8f96ef4cbfccf116/apislash-cryptobox-web-1.0.0.tgz","_integrity":"sha512-lGgApYooTVvS6OXV16Erw6fF5I6hupPtCmv8j1LonD0R00alFotWwWPBQ76Blmm6iO9T/5wE807lHSvpND318w==","_npmVersion":"11.14.1","description":"Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"@noble/post-quantum":"^0.2.0","@apislash/cryptobox-core":"1.0.0"},"publishConfig":{"registry":"https://gitlab.com/api/v4/projects/80697590/packages/npm/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cryptobox-web_1.0.0_1780133526404_0.5309904259484877","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@apislash/cryptobox-web","version":"1.0.2","license":"MIT","_id":"@apislash/cryptobox-web@1.0.2","maintainers":[{"name":"jantheon","email":"vonhara@gmail.com"}],"dist":{"shasum":"f76bc132aea88d3de302ec2a422a8c41d30d2f8f","tarball":"https://registry.npmjs.org/@apislash/cryptobox-web/-/cryptobox-web-1.0.2.tgz","fileCount":9,"integrity":"sha512-m2EQa7NrlRTMLyW1MYh+tXYW69YuCAq1sdNML5OJgpuT7JUfwbUGlt609iraxn/ikhwsGLUQ04aUzfttxIiB/Q==","signatures":[{"sig":"MEUCIBxTYekL/tPfI4LQMnzgK904PjW5pO+CwaiRDvXItckfAiEAnVFY53KN6xZndGyPDF2RCWxguyHbautg+xTQ8JzxYZc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66088},"main":"dist/index.cjs","type":"module","_from":"file:apislash-cryptobox-web-1.0.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"pnpm exec vitest run --passWithNoTests","build":"pnpm exec tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --out-dir dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"jantheon","email":"vonhara@gmail.com"},"_resolved":"/tmp/7953137a2360da8791d7c37247a7a1fa/apislash-cryptobox-web-1.0.2.tgz","_integrity":"sha512-m2EQa7NrlRTMLyW1MYh+tXYW69YuCAq1sdNML5OJgpuT7JUfwbUGlt609iraxn/ikhwsGLUQ04aUzfttxIiB/Q==","_npmVersion":"10.8.2","description":"Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@noble/post-quantum":"^0.2.0","@apislash/cryptobox-core":"^1.0.0"},"publishConfig":{"registry":"https://gitlab.com/api/v4/projects/80697590/packages/npm/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cryptobox-web_1.0.2_1781942216176_0.7519114381542567","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@apislash/cryptobox-web","version":"1.0.3","keywords":["apislash","crypto","cryptography","encryption","webcrypto","aes","typescript"],"author":{"name":"jantheon","email":"vonhara@gmail.com"},"license":"MIT","_id":"@apislash/cryptobox-web@1.0.3","maintainers":[{"name":"jantheon","email":"vonhara@gmail.com"}],"homepage":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/tree/main/packages/cryptobox-web#readme","bugs":{"url":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/issues"},"dist":{"shasum":"a70c4e13e5c82ce6888f60af3e0563bc087e5423","tarball":"https://registry.npmjs.org/@apislash/cryptobox-web/-/cryptobox-web-1.0.3.tgz","fileCount":9,"integrity":"sha512-YquFm8Mwdo5qUS9Vx8i8RpzoanI2/bT763whNa4nqKS6kqyXLSN2Jmxnbbxfx3GFeTJKgwTKvHyoQMkNdCHMBw==","signatures":[{"sig":"MEQCIB0F0NQ6k5uAnsWXRaDNZujnksBz5SYtuZbWcCTGg2e4AiAFBZU/E0KBNBrl5lfdsEDnemfSUpaiaq38lnl4sbA/uA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66629},"main":"dist/index.cjs","type":"module","_from":"file:apislash-cryptobox-web-1.0.3.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"pnpm exec vitest run --passWithNoTests","build":"pnpm exec tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --out-dir dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"jantheon","email":"vonhara@gmail.com"},"_resolved":"/tmp/b7508834bb80fad24a01b15c8fba704f/apislash-cryptobox-web-1.0.3.tgz","_integrity":"sha512-YquFm8Mwdo5qUS9Vx8i8RpzoanI2/bT763whNa4nqKS6kqyXLSN2Jmxnbbxfx3GFeTJKgwTKvHyoQMkNdCHMBw==","repository":{"url":"git+https://gitlab.com/apislash/libs/client/cryptobox/ts.git","type":"git","directory":"packages/cryptobox-web"},"_npmVersion":"10.8.2","description":"Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@noble/post-quantum":"^0.2.0","@apislash/cryptobox-core":"^1.0.0"},"publishConfig":{"registry":"https://gitlab.com/api/v4/projects/80697590/packages/npm/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cryptobox-web_1.0.3_1781942748687_0.986120675867086","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@apislash/cryptobox-web","version":"1.0.4","description":"Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.","type":"module","main":"./src/index.ts","module":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","default":"./src/index.ts"}},"publishConfig":{"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}}},"sideEffects":false,"scripts":{"build":"pnpm exec tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --out-dir dist","typecheck":"tsc -p tsconfig.json --noEmit","test":"pnpm exec vitest run --passWithNoTests"},"dependencies":{"@apislash/cryptobox-core":"^1.0.0","@noble/post-quantum":"^0.2.0"},"license":"MIT","repository":{"type":"git","url":"git+https://gitlab.com/apislash/libs/client/cryptobox/ts.git","directory":"packages/cryptobox-web"},"homepage":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/tree/main/packages/cryptobox-web#readme","bugs":{"url":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/issues"},"author":{"name":"jantheon","email":"vonhara@gmail.com"},"keywords":["apislash","crypto","cryptography","encryption","webcrypto","aes","typescript"],"gitHead":"9d2e767c4e36369112d0b54dce9599107e34ae55","_id":"@apislash/cryptobox-web@1.0.4","_nodeVersion":"20.20.2","_npmVersion":"11.17.0","dist":{"integrity":"sha512-Pv0r0wWKgrUlqTdACBbyaB2Xgm5voXDOdYiJtW9iIZgkwoX/cKespnWWLbpZSaoS4ztSBo5mrgVCpeuzRTY5mA==","shasum":"cae804625e86a51b825526a005cfb00088ea2ea0","tarball":"https://registry.npmjs.org/@apislash/cryptobox-web/-/cryptobox-web-1.0.4.tgz","fileCount":9,"unpackedSize":66764,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@apislash%2fcryptobox-web@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwLCOGWwPO42W1wsvk/m/Q9wNtGbyODSHieVYs1//cVgIgFq0c+zghUh3jTLwap2me5c4+yCfWF39xb99FXy+embc="}]},"_npmUser":{"name":"GitLab CI/CD","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"gitlab","oidcConfigId":"oidc:937637b6-0def-42f2-b4b1-f707f7387787"}},"directories":{},"maintainers":[{"name":"jantheon","email":"vonhara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cryptobox-web_1.0.4_1781948296689_0.008555220082553383"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-30T09:32:06.251Z","modified":"2026-06-20T09:38:17.139Z","1.0.0":"2026-05-30T09:32:06.536Z","1.0.2":"2026-06-20T07:56:56.312Z","1.0.3":"2026-06-20T08:05:48.819Z","1.0.4":"2026-06-20T09:38:16.830Z"},"bugs":{"url":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/issues"},"author":{"name":"jantheon","email":"vonhara@gmail.com"},"license":"MIT","homepage":"https://gitlab.com/apislash/libs/client/cryptobox/ts/-/tree/main/packages/cryptobox-web#readme","keywords":["apislash","crypto","cryptography","encryption","webcrypto","aes","typescript"],"repository":{"type":"git","url":"git+https://gitlab.com/apislash/libs/client/cryptobox/ts.git","directory":"packages/cryptobox-web"},"description":"Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.","maintainers":[{"name":"jantheon","email":"vonhara@gmail.com"}],"readme":"# @apislash/cryptobox-web\n\nQuantum-resistant crypto provider for the **browser** — part of [CryptoBox](https://gitlab.com/apislash/libs/client/cryptobox/ts). AES-GCM-256 via WebCrypto (`SubtleCrypto`) + ML-KEM-768/1024 hybrid. Framework-agnostic, usable in any web app; published by **Apislash**.\n\n## Install\n\n```bash\nnpm install @apislash/cryptobox-web\n```\n\n## Usage\n\n```ts\nimport { createWebCryptoProvider, createWebKeyProvider } from \"@apislash/cryptobox-web\";\n\nconst crypto = createWebCryptoProvider();\nconst keys = createWebKeyProvider();\n\nconst key = await keys.generateKey();\nconst envelope = await crypto.encrypt(key, new TextEncoder().encode(\"hello\"));\nconst plaintext = await crypto.decrypt(key, envelope);\n```\n\nUse `detectWebCryptoCapabilities()` to check runtime support. Interfaces come from [`@apislash/cryptobox-core`](https://www.npmjs.com/package/@apislash/cryptobox-core).\n\nMIT © Apislash\n","readmeFilename":"README.md"}