{"_id":"@abhedyam/wasm","_rev":"6-c0e79221151c24efb71f3c0c7c5e37ad","name":"@abhedyam/wasm","dist-tags":{"latest":"1.0.40"},"versions":{"1.0.32":{"name":"@abhedyam/wasm","version":"1.0.32","license":"MIT","_id":"@abhedyam/wasm@1.0.32","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"dist":{"shasum":"7779ae6406065f81644b2d888add1c3b9089c910","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.32.tgz","fileCount":5,"integrity":"sha512-ULhz4OOCkhd7vA7VrFWtn7QStTok+0derkuAVxrwSp2gXbUp6HR5jyG/xs8TJtLl85rkUK7lvMS97Dfb9gVacA==","signatures":[{"sig":"MEYCIQD0ntARvkkOpolU8t0WJ+3WwT78W7qHZP/ePxEfR7snPAIhALYuKnqxojSK/x/a6alAQc60bTSt1J7yvmRe05ucYB0Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40235},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","gitHead":"acae3eec1635f025314632c2651923eef209c2ae","_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"repository":{"url":"git+https://github.com/ParamTatva-org/abhedyam.git","type":"git"},"_npmVersion":"10.8.2","description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","directories":{},"_nodeVersion":"20.20.0","collaborators":["ParamTatva <bot@paramtatva.org>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm_1.0.32_1769231276438_0.5677433528698947","host":"s3://npm-registry-packages-npm-production"}},"1.0.33":{"name":"@abhedyam/wasm","version":"1.0.33","license":"MIT","_id":"@abhedyam/wasm@1.0.33","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"dist":{"shasum":"36a981f07c963919b8d67e3c9dc69b99e0d119bc","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.33.tgz","fileCount":5,"integrity":"sha512-RrR4UuNEruPfsaWow8ygd0ZSSWPKRXbH31aRd2d4Jdzit9uTcP9DiILeW2c+qCctqWbPoTs1lheL5Lha+W/ZJw==","signatures":[{"sig":"MEQCIEsZpazjVGY0MdR5v8LGhdxQTmF9LwfJv0viwPRWfRfaAiAtjCYWljh6vH0GvNivkpgCUjExaSPVThSx0zIHsYiN0g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40208},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","gitHead":"90979f5af5913b3b5bb2244115024d86b883e3f2","_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"repository":{"url":"git+https://github.com/ParamTatva-org/abhedyam.git","type":"git"},"_npmVersion":"10.8.2","description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","directories":{},"_nodeVersion":"20.20.0","collaborators":["ParamTatva <bot@paramtatva.org>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm_1.0.33_1769231992353_0.31035270332261367","host":"s3://npm-registry-packages-npm-production"}},"1.0.34":{"name":"@abhedyam/wasm","version":"1.0.34","license":"MIT","_id":"@abhedyam/wasm@1.0.34","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"dist":{"shasum":"fc066a57301968ff824ab87ca4c7880f1fe444e2","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.34.tgz","fileCount":5,"integrity":"sha512-zsLM+i/zhFHA3AFFTWXA97bdwSkvEiBPKm0u/Sk/SBMNsn9gd0qBlMXFCIbWpi9essS44n7AFBy6FSlBkwyWeg==","signatures":[{"sig":"MEYCIQD4l3PWTpa2WDrkn13HElklbZYGdvszwt7nRE7R/osmewIhANIxkZY9eV3CgqHdyJ7Z3lMkMeTS+DwRXNbXo+N2elOU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40208},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","gitHead":"1ed37b76972332bef2800b3a164b8e663a79750e","_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"repository":{"url":"git+https://github.com/ParamTatva-org/abhedyam.git","type":"git"},"_npmVersion":"10.8.2","description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","directories":{},"_nodeVersion":"20.20.0","collaborators":["ParamTatva <bot@paramtatva.org>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm_1.0.34_1769232043628_0.08291872957614177","host":"s3://npm-registry-packages-npm-production"}},"1.0.35":{"name":"@abhedyam/wasm","version":"1.0.35","license":"MIT","_id":"@abhedyam/wasm@1.0.35","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"dist":{"shasum":"b0cbfb19effa701526d44d6d6d6c6ad881c88dae","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.35.tgz","fileCount":5,"integrity":"sha512-gzNGL32tw0BsiCwQk3VfslC17Qx2DtF1+4XUCH9Gr8z1FaKyW+lkxEqytAQA2p4REl/cGVMQG3iiIENUIAfQBQ==","signatures":[{"sig":"MEQCIAHCqw5rLxk4ocxwJwt6yKKvMlbu0rkQDiMp1s7pmJWuAiAGtrKUqWotkHTgllR2LjWDHtOPErEPk4N5RRu+XnurmQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40208},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","gitHead":"54a5935b76ce9ab0fc665d4e8063283876a2205c","_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"repository":{"url":"git+https://github.com/ParamTatva-org/abhedyam.git","type":"git"},"_npmVersion":"10.8.2","description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","directories":{},"_nodeVersion":"20.20.0","collaborators":["ParamTatva <bot@paramtatva.org>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm_1.0.35_1769232113695_0.014386001715020136","host":"s3://npm-registry-packages-npm-production"}},"1.0.39":{"name":"@abhedyam/wasm","version":"1.0.39","license":"MIT","_id":"@abhedyam/wasm@1.0.39","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"dist":{"shasum":"84c6e1fbe016c4568dc57a63609073eb32be365b","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.39.tgz","fileCount":5,"integrity":"sha512-8C/ZBVGL3nt8kgKd3SRNzzJg4ruDaLy6yWcVjsd7cs7KL3oDXJZclSaaYllplYcWAWEILbfOz2t8BpXpXVrAOw==","signatures":[{"sig":"MEUCIQCF+6c3MKu1MRymhlKmTTSyQLkAi/sIFXCI2eZYqvEWwQIgM2n9zdtkmfA9VUhGa8fsELFwhqIZmJ/ZhD6eKEymbJs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41660},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","gitHead":"45035f9ef1d7c84872bf6785fb961fbe17c3e393","_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"repository":{"url":"git+https://github.com/ParamTatva-org/abhedyam.git","type":"git"},"_npmVersion":"10.8.2","description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","directories":{},"_nodeVersion":"20.20.0","collaborators":["ParamTatva <bot@paramtatva.org>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm_1.0.39_1769232565511_0.27484952162213694","host":"s3://npm-registry-packages-npm-production"}},"1.0.40":{"name":"@abhedyam/wasm","collaborators":["ParamTatva <bot@paramtatva.org>"],"description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","version":"1.0.40","license":"MIT","repository":{"type":"git","url":"git+https://github.com/ParamTatva-org/abhedyam.git"},"main":"abhedya_wasm.js","types":"abhedya_wasm.d.ts","_id":"@abhedyam/wasm@1.0.40","gitHead":"f0e8e51af14aed9ebd5cb93ede6e541eaab1f148","bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"homepage":"https://github.com/ParamTatva-org/abhedyam#readme","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-zcDQUsnN33LDo9xkmBuOf9sGTxm71cJ1y8wl+yiI/xe4yfitdaZ+V/cUjU9C8EoKfkNL24ELb7j6b1kLjeGO1g==","shasum":"3b60c40d0573318da8dc957cc96c481e6b23240e","tarball":"https://registry.npmjs.org/@abhedyam/wasm/-/wasm-1.0.40.tgz","fileCount":5,"unpackedSize":41660,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQChidJIyO7TK8fWQC112LJyLM9TiLU4PZUMFTrFj5ttOgIhAMhxLxJqrx6gKgkxwVT4C3xCMTOMZXGFympEMPnZVJKi"}]},"_npmUser":{"name":"jollypk","email":"prabhatkr@gmail.com"},"directories":{},"maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm_1.0.40_1769298749643_0.9772860146863334"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-24T05:07:56.374Z","modified":"2026-01-24T23:52:29.916Z","1.0.32":"2026-01-24T05:07:56.604Z","1.0.33":"2026-01-24T05:19:52.503Z","1.0.34":"2026-01-24T05:20:43.783Z","1.0.35":"2026-01-24T05:21:53.870Z","1.0.39":"2026-01-24T05:29:25.669Z","1.0.40":"2026-01-24T23:52:29.769Z"},"bugs":{"url":"https://github.com/ParamTatva-org/abhedyam/issues"},"license":"MIT","homepage":"https://github.com/ParamTatva-org/abhedyam#readme","repository":{"type":"git","url":"git+https://github.com/ParamTatva-org/abhedyam.git"},"description":"WASM Bindings for Abhedya: Sanskrit-Encoded PQC","maintainers":[{"name":"jollypk","email":"prabhatkr@gmail.com"}],"readme":"# Abhedya WASM\n\nWebAssembly bindings for **Abhedya**: Post-Quantum Sanskrit Cryptography.\n\nThis package brings the power of the Abhedya Rust core (Lattice-based LWE, $N=768$) to the JavaScript ecosystem via WebAssembly.\n\n## Installation\n\n```bash\nnpm install @abhedyam/wasm\n```\n\n## Usage\n\n```javascript\nimport init, { AbhedyaWasm } from \"@abhedyam/wasm\";\n\nasync function main() {\n  // 1. Initialize WASM module\n  await init();\n  const abhedya = new AbhedyaWasm();\n\n  // 2. Generate Keys using internal CSPRNG\n  console.log(\"Generating Keys...\");\n  abhedya.keygen();\n  // Keys are stored statefully in the WASM instance for security.\n\n  // 3. Encrypt Data\n  const message = \"The quick brown fox jumps over the lazy dog\";\n  const plainBytes = new TextEncoder().encode(message);\n\n  // Mode: false = Standard (Binary), true = Metered (Sanskrit Steganography)\n  const encrypted = abhedya.encrypt(plainBytes, false);\n  console.log(`Ciphertext Size: ${encrypted.length} bytes`);\n\n  // 4. Decrypt Data\n  const decrypted = abhedya.decrypt(encrypted);\n  console.log(\"Decrypted:\", new TextDecoder().decode(decrypted));\n}\n\nmain();\n```\n\n## API Reference\n\n### `new AbhedyaWasm()`\n\nCreates a new cryptographic context. The state (keys) is encapsulated within this instance.\n\n### `.keygen()`\n\nGenerates a new Kyber-768 equivalent Lattice Keypair ($N=768, Q=3329$).\n\n- **Returns**: `void` (Keys are stored internally).\n\n### `.encrypt(data: Uint8Array, metered: boolean): Uint8Array`\n\nEncrypts the input bytes.\n\n- `data`: The plaintext bytes.\n- `metered`:\n  - `false`: **Standard Mode**. High-throughput binary output.\n  - `true`: **Metered Mode**. Output is shaped to match valid Sanskrit prosody (Anushtubh meter) for steganography.\n- **Returns**: The ciphertext bytes.\n\n### `.decrypt(ciphertext: Uint8Array): Uint8Array`\n\nDecrypts the input using the stored private key.\n\n- **Returns**: The decrypted plaintext bytes.\n- **Performance**: Uses O(1) Sanskrit-Phonetic lookup for ultra-fast decryption (~2.39µs).\n","readmeFilename":"README.md"}