{"_id":"crypto-miller-rabin","_rev":"1-e136bfff6f699c4fcff33d4cfdba0468","name":"crypto-miller-rabin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"crypto-miller-rabin","version":"1.0.0","keywords":["crypto","miller","rabin","prime","primality","test"],"_id":"crypto-miller-rabin@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-miller-rabin#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-miller-rabin/issues"},"dist":{"shasum":"1ad669d2025b42c87a2276a6b3d366274a4f2cc9","tarball":"https://registry.npmjs.org/crypto-miller-rabin/-/crypto-miller-rabin-1.0.0.tgz","fileCount":13,"integrity":"sha512-OKUnjPIIts5OFn8eZnnBkpdAWe9NL6S4LnTsJ8ACHz/dqbwTPpXWswDcah/yP0obCwNFUqvTts5sqkRSWLU5Pg==","signatures":[{"sig":"MEUCIGawm7HvJqQHJELQh2q575Wk9MW02ZtlakimDtJrLcV2AiEA/y6FKlfRauEcWqEH+6UOH2S3vSV9BcOy6z5ymU217EU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7788},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"72f51af19a3a112581dd5c9addbaabc364de469c","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-miller-rabin.git","type":"git"},"_npmVersion":"8.19.2","description":"Implementation of the Miller-Rabin primality test.","directories":{},"_nodeVersion":"18.12.0","dependencies":{"fast-mod-exp":"^1.0.0","crypto-random-in-range":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.1","tsex":"^3.0.1","benchloop":"^2.1.0","typescript":"^5.1.6","crypto-sieve":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/crypto-miller-rabin_1.0.0_1691242469002_0.9787554386762674","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"crypto-miller-rabin","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-miller-rabin.git"},"description":"Implementation of the Miller-Rabin primality test.","license":"MIT","version":"1.0.1","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["crypto","miller","rabin","prime","primality","test"],"dependencies":{"crypto-random-in-range":"^2.0.1","fast-mod-exp":"^1.0.1"},"devDependencies":{"benchloop":"^2.1.1","crypto-sieve":"^1.1.3","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"crypto-miller-rabin@1.0.1","gitHead":"580994ace804014d963ff73e5dc53174e0c2897b","bugs":{"url":"https://github.com/fabiospampinato/crypto-miller-rabin/issues"},"homepage":"https://github.com/fabiospampinato/crypto-miller-rabin#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Aq9x2PurIXo4IqW25DYL3cL3i+eOVUsrUUxDBXjWdQgXOACUttZ0m9+PR0rWpdq6v1XZw9bZ+PZWk5RQnk/L1A==","shasum":"c62150c2d94d5536fa827d3686b0d397ccf0a524","tarball":"https://registry.npmjs.org/crypto-miller-rabin/-/crypto-miller-rabin-1.0.1.tgz","fileCount":7,"unpackedSize":4860,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjtnUme9v+Zb/jAH9CVPCot34W75IiP7i5E4MbbqEgcAiEA1kEEyvigtHbHT825X+D9CKfakNikOxY5Q9Cokoy3TiI="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crypto-miller-rabin_1.0.1_1736813886119_0.14976542180942243"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-05T13:34:28.993Z","modified":"2025-01-14T00:18:06.500Z","1.0.0":"2023-08-05T13:34:29.151Z","1.0.1":"2025-01-14T00:18:06.323Z"},"bugs":{"url":"https://github.com/fabiospampinato/crypto-miller-rabin/issues"},"homepage":"https://github.com/fabiospampinato/crypto-miller-rabin#readme","keywords":["crypto","miller","rabin","prime","primality","test"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-miller-rabin.git"},"description":"Implementation of the Miller-Rabin primality test.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Crypto Miller-Rabin\n\nImplementation of the Miller-Rabin primality test.\n\n## Install\n\n```sh\nnpm install crypto-miller-rabin\n```\n\n## Usage\n\n```ts\nimport isProbablyPrime from 'crypto-miller-rabin';\n\n// Let's check if a bigint is probably prime, performing 30 rounds of Miller-Rabin tests\n\nisProbablyPrime ( 428619803581219889005329334991561182527277683715078274359377824192296037302435017260422513n, 30 ); // => true\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}