{"_id":"crypto-random-prime","_rev":"1-828484657c8df0315e5a02e3c0f10da6","name":"crypto-random-prime","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"crypto-random-prime","version":"1.0.0","keywords":["random","prime","number","generator"],"_id":"crypto-random-prime@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-prime#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-prime/issues"},"dist":{"shasum":"b04c42e200598b7e0c671652904c5a33e90b51ef","tarball":"https://registry.npmjs.org/crypto-random-prime/-/crypto-random-prime-1.0.0.tgz","fileCount":10,"integrity":"sha512-doJlX9nosDzKB3WBhtPDGlLqpXNCdrYmkcAP/2pYVnk618fvioqsjtfeiIzKUVlr61LN0jXzh/k4xQJKvw7c5A==","signatures":[{"sig":"MEUCIQDxrlIj2PagX5G2lFI2Zu5EKqkwmfc4d7FE9+j6U4EtygIgG2p+GOjCUPiWdWjS8a4A8SXTZKcDoPJaVKAECBXhhEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4642},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"5e95de32eecc695c9c8ac5aed1589e1115b5068b","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-random-prime.git","type":"git"},"_npmVersion":"8.19.2","description":"Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.","directories":{},"_nodeVersion":"18.12.0","dependencies":{"crypto-miller-rabin":"^1.0.0","crypto-random-bigint":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.1","tsex":"^3.0.1","benchloop":"^2.1.0","typescript":"^5.1.6","crypto-prime-test":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-prime_1.0.0_1691261023679_0.19230907680420883","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"crypto-random-prime","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-random-prime.git"},"description":"Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.","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":["random","prime","number","generator"],"dependencies":{"crypto-miller-rabin":"^1.0.1","crypto-random-bigint":"^2.1.1"},"devDependencies":{"benchloop":"^2.1.1","crypto-prime-test":"^1.0.0","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"crypto-random-prime@1.0.1","gitHead":"d434a5663e6c29a371ed2a3ae1ef1090dfcb6132","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-prime/issues"},"homepage":"https://github.com/fabiospampinato/crypto-random-prime#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-WyJLOvJ8Z6Z3+Ep4s+fhBzqM1R+/1BRa8aA/Hy/krXeCvu88U2QyxDurcyqUF0DZ/CWkFnVg6ppSkQhDABmmCg==","shasum":"698c11d0c142b24fd21a5676bcf13ee817c468b0","tarball":"https://registry.npmjs.org/crypto-random-prime/-/crypto-random-prime-1.0.1.tgz","fileCount":5,"unpackedSize":3195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz5QvOKjtryOfduIj6qHn2hzNxnY7+dFSx5ZocVnbBWQIhAJZbX04E9+9QF0jlHNNCgc57SdkdAPx9sJZzQbK2Gv7G"}]},"_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-random-prime_1.0.1_1736890536805_0.8565082471721599"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-05T18:43:43.675Z","modified":"2025-01-14T21:35:37.182Z","1.0.0":"2023-08-05T18:43:43.821Z","1.0.1":"2025-01-14T21:35:37.000Z"},"bugs":{"url":"https://github.com/fabiospampinato/crypto-random-prime/issues"},"homepage":"https://github.com/fabiospampinato/crypto-random-prime#readme","keywords":["random","prime","number","generator"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-random-prime.git"},"description":"Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Crypto Random Prime\n\nGenerate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.\n\n## Install\n\n```sh\nnpm install crypto-random-prime\n```\n\n## Usage\n\n```ts\nimport random from 'crypto-random-prime';\n\n// Let's generate a 300-bits random prime, performing 64 rounds of Miller-Rabin tests\n\nrandom ( 300, 64 ); // => 1229897812185405005544550995303702949862219513844036076668441860571526838822977324092558451n\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}