{"_id":"rsa-pem-from-mod-exp","_rev":"15-efbbcd6ce9ca86b297884a82f9f3de80","name":"rsa-pem-from-mod-exp","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","dist-tags":{"latest":"0.8.6"},"versions":{"0.2.0":{"name":"rsa-pem-from-mod-exp","version":"0.2.0","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","main":"index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R spec test/**/*.tests.js"},"repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"keywords":["rsa","public-key","pem","modulus","exponent"],"author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"devDependencies":{"mocha":"~1.17.1","should":"~3.1.2","istanbul":"~0.2.4"},"_id":"rsa-pem-from-mod-exp@0.2.0","dist":{"shasum":"ff5ae971e9ff63b48331eb08a1c08b536a1cde69","tarball":"https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.2.0.tgz","integrity":"sha512-GSJngBOhDXsm3wQB09dACmchlkDGTCcD1+dZVzRS7XHb7OYtL4DXcAyz9HUriIKTVlFl8cj36obYXC1jMQoTMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf5Z595WDJ+fzEXWRhvkwPntuOf+IPTZMgfHElXBuj0gIgGlNq9kb/+MM4wOUyMs67oHcpQ1FHH2EXTy+gM0sormA="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"directories":{}},"0.8.0":{"name":"rsa-pem-from-mod-exp","version":"0.8.0","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","main":"index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R spec test/**/*.tests.js"},"repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"keywords":["rsa","public-key","pem","modulus","exponent"],"author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"devDependencies":{"mocha":"~1.17.1","should":"~3.1.2","istanbul":"~0.2.4"},"_id":"rsa-pem-from-mod-exp@0.8.0","dist":{"shasum":"e5ea3dae188c8fded3aa63faf0fed843cbe1cc2b","tarball":"https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.8.0.tgz","integrity":"sha512-0yfhO+TxNUlEVLH8M/brZ7OrZyiTLvdFxE1Nz23+wz3CH+cH6S1uh8iFTTu+ToUZ81rzaI0PSpl86n8gLHg3mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu2TU6IlUXpO2bpdYccEW6iO++kxeiteF+DcrenIoR2QIgJ/pRwPuBxb1yG4s2dPGHJhjucGCKUhNf2nbEdtLMC7U="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"directories":{}},"0.8.4":{"name":"rsa-pem-from-mod-exp","version":"0.8.4","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","main":"index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R spec test/**/*.tests.js"},"repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"keywords":["rsa","public-key","pem","modulus","exponent"],"author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"devDependencies":{"mocha":"~1.17.1","should":"~3.1.2","istanbul":"~0.2.4"},"_id":"rsa-pem-from-mod-exp@0.8.4","dist":{"shasum":"362a42c6d304056d493b3f12bceabb2c6576a6d4","tarball":"https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.8.4.tgz","integrity":"sha512-tIU9uofdormBO48by/1Q7XT61eUsK/Ucz6I7/yHslLeQVK+dKWMHVh59eqosvPvDP7U0v71MX9KCL/dNFK5uyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICE3oQ+i7FfvkQoLxBtdFZV1Ny8DZ890Rl69cviQ4JXtAiBKEPDr7ZYotiGHYM9ugUZP7bEDO/juBVwYy+S0FD7Dkw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"directories":{}},"0.8.5":{"name":"rsa-pem-from-mod-exp","version":"0.8.5","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","main":"index.js","scripts":{"test":"mocha -R spec","cover":"istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R spec test/**/*.tests.js"},"repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"keywords":["rsa","public-key","pem","modulus","exponent"],"author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"devDependencies":{"mocha":"~1.17.1","should":"~3.1.2","istanbul":"~0.2.4"},"gitHead":"6aefeab7ecc69236becbf2bf827b21a385183020","homepage":"https://github.com/tracker1/node-rsa-pem-from-mod-exp#readme","_id":"rsa-pem-from-mod-exp@0.8.5","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-D5dt0kd9zpOyZJNk3ObG/wJQCfwDwSD1DawIkRr7LXcflcuvWXqhU0QTFkuJNXM8KZJaXw6TD6xCA2SDHqpZzg==","shasum":"6b91c591b5641924580f9993c3d0ca970b17bd70","tarball":"https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.8.5.tgz","fileCount":7,"unpackedSize":12593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkWXPzqPEbe0y1Vyh86pZfwBTfKGIdFSRgaBJUc1PM4QIhAIUBxhlr/Ht7d0xlqt9zDbRR/tcb0YE50ai1D1U6PAVp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIlysACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmokjw//TdZuH/SzDPOuhRRSJbDM3xZzSYjyuS3fIntyirkBiyVmz3U4\r\nMhhq4/50wV9s/ZtCxW74nYZDYTeuFJ3nbkQdEO7a/5OX7+xewsfsMpFkiT1e\r\n0C3t/6MCzLeAUonD7RkipX2Mdnby8oy3YFK4Xeg1gXgdoek7XyVi9k7XrOnS\r\nRnHKpwfc3ZETAne1L1YxJMuVASqXDI+JpsPqsZbLStfPXmWaZNziflkEQ6NS\r\nrHaVA/K1JJWAOf1bBvw/+D41/ST/fwIRnkrI46vI1xWbmfKBjYI5vhEYk54B\r\nfT1UXHKS69FIF0ZgAv/t1VVJYaYGWhapOw+gtS41qAq+DLb78ThfteH0W5xp\r\nuH1ANb+d3CWtSYE5PUC99vDIagl2RNPFPKyrDoFQ2U4AqNIIAeYCKV5TfBLq\r\nEKl3/8QpG/OzdxEigJBcxqDrU4CEhHPnDhI/3MvqPHE7XzTeObHOdabkGGcN\r\nqA1DRrTsnRK45GLll2LFDKTbvYKm1s0xjfIVcvlNEBzdGNQY9OX66m+ZWJ2v\r\nej411QjVb+3uFkBPpPISQzH2zVSC5qxGObw7YiR3v/J/9g4Gev8IqsOq4Njn\r\nPR1AjAPNwdCiWHOKd7ADL5i2XPkoW00syH0Q0oD41C/QXxyhOhPMlecxMrOK\r\ndUMlAGjRHbp7tCr/24EMG/54iDgpRR0fpIk=\r\n=WZXt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"directories":{},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rsa-pem-from-mod-exp_0.8.5_1663196332503_0.4048420998609006"},"_hasShrinkwrap":false},"0.8.6":{"name":"rsa-pem-from-mod-exp","version":"0.8.6","description":"Create RSA Public Key PEM from Modulus and Exponent value in node.js","main":"index.js","repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"keywords":["rsa","public-key","pem","modulus","exponent"],"author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"devDependencies":{"mocha":"^10.2.0","nyc":"^15.1.0","should":"^13.2.3"},"scripts":{"test":"nyc mocha"},"types":"./index.d.ts","gitHead":"2705b74e3e3e9df75245b7d11d923dd04c015607","homepage":"https://github.com/tracker1/node-rsa-pem-from-mod-exp#readme","_id":"rsa-pem-from-mod-exp@0.8.6","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-c5ouQkOvGHF1qomUUDJGFcXsomeSO2gbEs6hVhMAtlkE1CuaZase/WzoaKFG/EZQuNmq6pw/EMCeEnDvOgCJYQ==","shasum":"8b828d602d544154e317a3c3eb8889cdac810f2c","tarball":"https://registry.npmjs.org/rsa-pem-from-mod-exp/-/rsa-pem-from-mod-exp-0.8.6.tgz","fileCount":8,"unpackedSize":12650,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuug0x9/IiI/UNgLd1ZU6FajgP3d/VtNqEznZt/6CbxQIhAPBIUYvB+0JI3H5vEzCV4tGWlk+6nKtOVbCC0RLbEpqw"}]},"_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"directories":{},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rsa-pem-from-mod-exp_0.8.6_1686929905811_0.5457667326443989"},"_hasShrinkwrap":false}},"readme":"node-rsa-pem-from-mod-exp\n=========================\n\nCreate RSA Public Key PEM from Modulus and Exponent value in [node.js](http://nodejs.org/). There are no dependencies to other modules for use.\n\nThis allows you to use the modulus/exponent values for validating signed value.\n\nThe original code is based on the answer to [this stackoverflow question](http://stackoverflow.com/questions/18835132/xml-to-pem-in-node-js).\n\n\n## Install ##\n```\nnpm install rsa-pem-from-mod-exp\n```\n\n## Usage ##\n``` javascript\n//getPem = function(modulus_base);\nvar getPem = require('rsa-pem-from-mod-exp');\n\n//modulus should be a base64/base64Url string\nvar modulus =  \"niqcAxl7LclB0kE6q9AcAd8EE+0W6AsriR9Fs9T+6QVXl8uiCiAbh/KCyy8X8C2bHsFpNBvwGTqMwHbqZqWBVUvYRtfCFcy3Xmertb09DnOBeWqKS4181kss97JDO6G07QNbuLSWwkkO82CHD1kUmeF5/dof0Ra6bsRXqppdo86NzlgFud+E2s5BM3XwewZVSpA69bwEiXaRDhrsg5mqeOm68VyxE8LQu+895kKsBnTvTueZTrXT+HNaIveoYe8+Lb7b/mZYtlhrDK0i/8EDox85vxnzKZ7wNswqqcDg6vfC2911phSTPh13jv2FIOkjO/WHhHEzRnS2VQqivqIbsQ\";\n\n//exponent should be base64/base64url\nvar exponent = \"AQAB\";\n\nvar pem = getPem(modulus, exponent);\n```\n\nIn the above example pem will now contain the following string.\n```\n-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAniqcAxl7LclB0kE6q9AcAd8EE+0W6AsriR9Fs9T+6QVXl8uiCiAb\nh/KCyy8X8C2bHsFpNBvwGTqMwHbqZqWBVUvYRtfCFcy3Xmertb09DnOBeWqKS418\n1kss97JDO6G07QNbuLSWwkkO82CHD1kUmeF5/dof0Ra6bsRXqppdo86NzlgFud+E\n2s5BM3XwewZVSpA69bwEiXaRDhrsg5mqeOm68VyxE8LQu+895kKsBnTvTueZTrXT\n+HNaIveoYe8+Lb7b/mZYtlhrDK0i/8EDox85vxnzKZ7wNswqqcDg6vfC2911phST\nPh13jv2FIOkjO/WHhHEzRnS2VQqivqIbsQIDAQAB\n-----END RSA PUBLIC KEY-----\n```\n\n## Testing and Code Coverage ##\n```javascript\nnpm test\nnpm run cover\n```","maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"time":{"modified":"2023-06-16T15:38:26.111Z","created":"2014-02-13T20:43:21.158Z","0.2.0":"2014-02-13T20:43:22.430Z","0.8.0":"2014-02-13T20:46:38.338Z","0.8.4":"2014-02-13T21:22:17.246Z","0.8.5":"2022-09-14T22:58:52.658Z","0.8.6":"2023-06-16T15:38:25.989Z"},"readmeFilename":"README.md","author":{"name":"Michael J. Ryan","email":"tracker1+github@gmail.com"},"repository":{"type":"git","url":"git://github.com/tracker1/node-rsa-pem-from-mod-exp.git"},"users":{"corintho":true},"homepage":"https://github.com/tracker1/node-rsa-pem-from-mod-exp#readme","keywords":["rsa","public-key","pem","modulus","exponent"],"bugs":{"url":"https://github.com/tracker1/node-rsa-pem-from-mod-exp/issues"},"license":"MIT"}