{"_id":"@alankyshum/share-crypto","name":"@alankyshum/share-crypto","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alankyshum/share-crypto","version":"1.0.0","description":"Cryptographic and compression utilities for md-share","license":"MIT","author":{"name":"Alan Shum"},"repository":{"type":"git","url":"git+https://github.com/alankyshum/md-share.git","directory":"packages/share-crypto"},"homepage":"https://github.com/alankyshum/md-share#readme","bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"keywords":["crypto","compression","pako","md-share"],"private":false,"publishConfig":{"access":"public"},"type":"module","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","test":"vitest run"},"dependencies":{"pako":"^2.1.0"},"devDependencies":{"@types/pako":"^2.0.3","tsup":"^8.0.2","vitest":"^3.0.5"},"_id":"@alankyshum/share-crypto@1.0.0","gitHead":"e5e46ae95d207623ac9fd78dc2ac31362c4068e8","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ClN2d5MP2tiCZxp/361JMPbK3Qb0qom/wcG3QLbvV0S4zYjq3iWBgHWsr6aJ6mgYfquZUrLMJS9vgv/kbYy+pw==","shasum":"7a938749128c6d08ee09c1b2c73210caa764f3e8","tarball":"https://registry.npmjs.org/@alankyshum/share-crypto/-/share-crypto-1.0.0.tgz","fileCount":6,"unpackedSize":15715,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIQCoXPHzdD0+6w6xJZmgXqvyQ5TAdWHzaeSwmWEdd87kjwIfMaKPoXLr9XwxxtvUWF1339VwYRvLtIjs/bh+l5E4Lw=="}]},"_npmUser":{"name":"alankyshum","email":"alan200994@gmail.com"},"directories":{},"maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/share-crypto_1.0.0_1779751082410_0.2904293737983725"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T23:18:02.244Z","1.0.0":"2026-05-25T23:18:02.577Z","modified":"2026-05-25T23:18:02.792Z"},"maintainers":[{"name":"alankyshum","email":"alan200994@gmail.com"}],"description":"Cryptographic and compression utilities for md-share","homepage":"https://github.com/alankyshum/md-share#readme","keywords":["crypto","compression","pako","md-share"],"repository":{"type":"git","url":"git+https://github.com/alankyshum/md-share.git","directory":"packages/share-crypto"},"author":{"name":"Alan Shum"},"bugs":{"url":"https://github.com/alankyshum/md-share/issues"},"license":"MIT","readme":"# @alankyshum/share-crypto\n\nEncryption helpers for `md-share`.\n\n## Design Decisions & Security Posture\n\n- **Plaintext title/description are intentional for rich OG previews and storage-repo manageability.** They are **not suitable for enterprise PII scenarios**. Use only for content you'd be willing to leave on a public GitHub repo if the URL leaks.\n- **AES-256-GCM remains quantum-resistant for this use case:** Grover's algorithm reduces effective security to 128 bits, well above the 80-bit comfort threshold. Shor's algorithm does not apply (symmetric primitive).\n- **Idempotent Storage Keys:** The encrypted share `key` (filename, 12-char sha256) must hash the **plaintext markdown body** (not the ciphertext) so identical content from the same user produces idempotent filenames.\n","readmeFilename":"README.md","_rev":"1-04f1e742c1308ff1fe8f5bc2bee56128"}