{"_id":"@asanrom/dilithium","_rev":"2-37bba35ca2be0ff304e88d4a4ff741f5","name":"@asanrom/dilithium","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@asanrom/dilithium","version":"1.0.0","description":"Implementation of post-quantum signature algorithm: CRYSTALS-Dilithium.","main":"dist/index.js","typings":"dist/index.d.ts","homepage":"https://github.com/AgustinSRG/crystals-dilithium-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/crystals-dilithium-js.git"},"scripts":{"prebuild":"npm run lint","compile":"tsc --pretty --declaration && webpack","build":"rimraf dist && npm run compile && npm run gendoc","lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'","gendoc":"typedoc --out docs ./src"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"engines":{"node":">= 12.0.0"},"pre-commit":["lint"],"devDependencies":{"@types/chai":"4.3.3","@types/mocha":"9.1.1","@types/node":"18.7.14","@typescript-eslint/eslint-plugin":"5.36.1","@typescript-eslint/parser":"5.36.1","chai":"4.3.6","eslint":"8.23.0","mocha":"10.0.0","rimraf":"3.0.2","ts-loader":"9.3.1","ts-node":"10.9.1","typedoc":"0.23.12","typescript":"4.8.2","webpack":"5.74.0","webpack-cli":"4.10.0"},"license":"MIT","dependencies":{"long":"5.2.0","randombytes":"2.1.0","sha3":"2.1.4"},"gitHead":"e0ffdb2e5ec784acacc31a3ad893ea4f231eabef","bugs":{"url":"https://github.com/AgustinSRG/crystals-dilithium-js/issues"},"_id":"@asanrom/dilithium@1.0.0","_nodeVersion":"14.17.5","_npmVersion":"8.5.5","dist":{"integrity":"sha512-hVMIOl/a6vt9vL9DUx6i6VrYm+iZk1g4wsTfuNj2nxlBdGjU+gTo2uywvVcRaeE2Hmhs99MtLhMANYS/v7kwiQ==","shasum":"a4e32bb77eef8c839391c1855be500743320f732","tarball":"https://registry.npmjs.org/@asanrom/dilithium/-/dilithium-1.0.0.tgz","fileCount":21,"unpackedSize":97928,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFChP/2/+eHHoO1MxGLgRrAD8I//Nd8krUP0GYnGVDNaAiEAoK6T2cUxKFO5DVa/SI+R+9Otxfd7gkO/hcW61+14GYw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGuO9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozqA/+LNbM6o8njxPjLoJnLB2Ksakzmw2LcB+aeeMfzS+kjYe0amSF\r\nuVOxLqv7wDxPiPn7u0sNfCcOphjcVSVM0Cf8jQ+0AZbfBgRR1Y8LkMTjIayi\r\ncLXb7vhDw67dmQw25f0I1Lg2Sy4MvL88MP5nB1UxQsjiPrAYzv5ERf9MKaoi\r\nP3C91h7rP1OE3+fTJyqrt+fckyaQ5JzzGXBQH+D3dCoEjA312TS+riYTG/9j\r\nguBdb93vxC9UDZvveWLTh5BHaNCsFiHxaP7SScn8/qUFHOMpyC0h67E4afuL\r\nMVxVvDSEt4vEEt1VC/SYO8ug6dOo0iznlbTsiuDJDvqpDx3arCaZtvtUFkZ1\r\nlz6sa3usJVQ67kbS+g/DGViB993GiLWsduS//8UeYpe7Vrp+r1pTt71VpKth\r\ni11ayJCteV9K4f9pPh3TkHbDFhyoeFxLV1PUVtV+dht1iTMnbLnktYIIIcjM\r\n6LwvXBour1cMgYhEoxH6GQTdebak1GvMy9WWZl9L+bDmqhMRx3tVbTxuIG9W\r\ni4avgfzfcGDVTsSoMgecrD+1FVSpPhXcvtIaatu2PwRCVVGkU/tCEezQv3rV\r\nN/3tHfAhczjf7eWt3iZN0w4RHLNHBT79j4gOMyy+yfk/wS0dONapzxju0WU8\r\nPf+pON939q5+M/Yo75NScDedTdw6pxlDl3E=\r\n=5uoJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"directories":{},"maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dilithium_1.0.0_1662706621016_0.8172624335599261"},"_hasShrinkwrap":false},"1.1.0":{"name":"@asanrom/dilithium","version":"1.1.0","description":"Implementation of post-quantum signature algorithm: CRYSTALS-Dilithium.","main":"dist/index.js","typings":"dist/index.d.ts","homepage":"https://github.com/AgustinSRG/crystals-dilithium-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/crystals-dilithium-js.git"},"scripts":{"prebuild":"npm run lint","compile":"tsc --pretty --declaration && webpack","build":"rimraf dist && npm run compile","lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'","gendoc":"typedoc --out docs ./src"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"engines":{"node":">= 12.0.0"},"pre-commit":["lint"],"devDependencies":{"@types/chai":"4.3.3","@types/mocha":"9.1.1","@types/node":"18.7.14","@typescript-eslint/eslint-plugin":"5.36.1","@typescript-eslint/parser":"5.36.1","chai":"4.3.6","eslint":"8.23.0","mocha":"10.0.0","rimraf":"3.0.2","ts-loader":"9.3.1","ts-node":"10.9.1","typedoc":"0.23.12","typescript":"4.8.2","webpack":"5.74.0","webpack-cli":"4.10.0"},"license":"MIT","dependencies":{"long":"5.2.0","randombytes":"2.1.0","sha3":"2.1.4"},"gitHead":"6c5a643b81d91fb5d1ca35fe83e164ea9e52c0d0","bugs":{"url":"https://github.com/AgustinSRG/crystals-dilithium-js/issues"},"_id":"@asanrom/dilithium@1.1.0","_nodeVersion":"14.17.5","_npmVersion":"8.5.5","dist":{"integrity":"sha512-BDzk5QmTfknoneVixJ6xotruqFB+bCYAMTzF14fwKIOrusFSpzJzIpTugvpWKovULcC+OxDwexobwB/BUlaIug==","shasum":"c390b96648e96d2106b2e69be3383e8afdf9563a","tarball":"https://registry.npmjs.org/@asanrom/dilithium/-/dilithium-1.1.0.tgz","fileCount":21,"unpackedSize":97917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbEZTTyYQa2ec/tcPOooD1yB5TNjL8MThvl9pwv1hSYwIgepfRZnDeNRScQUx6eC2sC2yu48aMo/eD9blFhPXRsHs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIbK2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmra0A//TKmi5lMyFZMUOfA/SpY3BloEoDWIdwe4J6QkfCktpKv7gX8V\r\nWkkOds9T85xoBDzqPiQaI++O3nNaqNMB7GEcBGlzi5kowPwLEAmQqtXvyrIb\r\nq1OMtwGsTPo0i0BN2GsHcOoOOyYWk8cJXuGGAZVBCVTr/MQpzSwRu/20KXv3\r\ndnTKSlS/uG9ek/SboVOGetSpNtoTZccvIjDFYIdMlHqCMOMGc+EFhGSQ6e9p\r\nmcfr3ePKRQtYnNwbGQmXzfrPKw1jRKgqSPQRkyW41js9Ogkz+lqRvlPx0gP3\r\nC/4nBRw/JvYyBawOsYi/rcZivt9oRaVv7W2/yVqoiKMUqv/VQWzSLfZ7LYmf\r\nspw52HHfYKbukOVM71DotC8BKJSuMA2ThLh+BOQut4+qQ6WaltPX57uksA+S\r\nX7IRCoQaYK4RgRf/hBxyZQbAMPgOM7vxkFRm4BvyKaE4TgueNOHg2bJtzbol\r\nY/5y4p1hnPtcqRaJNBxopKBkmhJB+bXWrX6Ca3cwcajrFg2byQv4UGSrxQ6J\r\n3kMvVt5HlHv84zD+VNhT+3dOgirQc77GPpbpxXNI/jiptibhZ3DwOKsmUm7L\r\njci6CdMWeOSFtH/s341Eoj3DrOaEo96/Pfd3kMhwSoNu8rtsNSbLI2JFKf49\r\nnnnBo5vhpASE2LeXY31qyOAYWp7paf0uKOE=\r\n=qACA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"directories":{},"maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dilithium_1.1.0_1663152822157_0.6049555904845259"},"_hasShrinkwrap":false},"1.1.1":{"name":"@asanrom/dilithium","version":"1.1.1","description":"Implementation of post-quantum signature algorithm: CRYSTALS-Dilithium.","main":"dist/index.js","typings":"dist/index.d.ts","homepage":"https://github.com/AgustinSRG/crystals-dilithium-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/crystals-dilithium-js.git"},"scripts":{"prebuild":"npm run lint","compile":"tsc --pretty --declaration && webpack","build":"rimraf dist && npm run compile","lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'","gendoc":"typedoc --out docs ./src && cp tests/test.html docs/test.html && cp dist.webpack/dilithium.js docs/dilithium.js"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"engines":{"node":">= 16.0.0"},"pre-commit":["lint"],"devDependencies":{"@types/chai":"4.3.4","@types/mocha":"10.0.1","@types/node":"18.15.3","@typescript-eslint/eslint-plugin":"5.55.0","@typescript-eslint/parser":"5.55.0","chai":"4.3.7","eslint":"8.36.0","mocha":"10.2.0","rimraf":"4.4.0","ts-loader":"9.4.2","ts-node":"10.9.1","typedoc":"0.23.27","typescript":"4.9.5","webpack":"5.76.2","webpack-cli":"5.0.1"},"license":"Apache-2.0","dependencies":{"buffer":"6.0.3","long":"5.2.1","randombytes":"2.1.0","sha3":"2.1.4"},"gitHead":"d27ffff1feea097377401635530f51c27aa0dc2f","bugs":{"url":"https://github.com/AgustinSRG/crystals-dilithium-js/issues"},"_id":"@asanrom/dilithium@1.1.1","_nodeVersion":"20.11.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-TrSvroskkJJ30jBKPE9DkQdOpGYgaj24wnIJjfWDp0MaN7yMV0zWYWD9fGfSQGyVCXKa+jf0oF0PD2j7ePILCQ==","shasum":"df997f86f7e179ec2cffa6bc0c10f7a85d454393","tarball":"https://registry.npmjs.org/@asanrom/dilithium/-/dilithium-1.1.1.tgz","fileCount":21,"unpackedSize":98542,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjFPCKYyYMjnfbktG0N1UZPzJysG9TMYfNT/H5vyrHaAIhALXd3OqP6VABA2F6INjwH+Q7ba30DzLZvZT27fJJK12+"}]},"_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"directories":{},"maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dilithium_1.1.1_1711721037048_0.04325723449822916"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-09T06:57:00.960Z","1.0.0":"2022-09-09T06:57:01.268Z","modified":"2024-03-29T14:03:57.439Z","1.1.0":"2022-09-14T10:53:42.320Z","1.1.1":"2024-03-29T14:03:57.259Z"},"maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"description":"Implementation of post-quantum signature algorithm: CRYSTALS-Dilithium.","homepage":"https://github.com/AgustinSRG/crystals-dilithium-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/crystals-dilithium-js.git"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"bugs":{"url":"https://github.com/AgustinSRG/crystals-dilithium-js/issues"},"license":"Apache-2.0","readme":"# CRYSTALS-Dilithium (Javascript implementation)\n\n[![npm version](https://badge.fury.io/js/%40asanrom%2Fdilithium.svg)](https://badge.fury.io/js/%40asanrom%2Fdilithium)\n\nJavascript implementation of post-quantum signature algorithm: [CRYSTALS-Dilithium](https://pq-crystals.org/dilithium).\n\nNote: This is an experimental implementation. I do not recommend using it in production until the algorithm is standarized.\n\n## Installation\n\nIf you are using a npm managed project use:\n\n```\nnpm install @asanrom/dilithium\n```\n\nIf you are using it in the browser, download the minified file from the [Releases](https://github.com/AgustinSRG/crystals-dilithium-js/tags) section and import it to your html:\n\n```html\n<script type=\"text/javascript\" src=\"/path/to/dilithium.js\"></script>\n```\n\nThe browser library exports all artifacts to the window global: `DilithiumAlgorithm`\n\n## Usage\n\n```ts\nimport { DilithiumKeyPair, DilithiumLevel, DilithiumLevelNumber, DilithiumSignature } from \"@asanrom/dilithium\";\n\nconst level = DilithiumLevel.get(2); // Get the security level config (2, 3, or 5)\n\n// Generate a key pair\nconst keyPair = DilithiumKeyPair.generate(level);\n\n// Get the private key\nconst privateKey = keyPair.getPrivateKey();\n\n// Sign a message\nconst message = new Uint8Array(Buffer.from(\"Joy!\", \"utf8\"));\nconst signature = privateKey.sign(message);\n\n// Get the public key\nconst publicKey = keyPair.getPublicKey();\n\n// Validate signature\nconst valid = publicKey.verifySignature(message, signature);\n```\n\n## Documentation\n\n - [Library documentation (Auto-generated)](https://agustinsrg.github.io/crystals-dilithium-js/)\n - [Test in the browser](https://agustinsrg.github.io/crystals-dilithium-js/test.html)\n","readmeFilename":"README.md"}