{"_id":"node-bignumber","_rev":"9-f0b0d83b8800f057e918429abe9892f4","name":"node-bignumber","description":"A pure javascript implementation of BigIntegers and RSA crypto.","dist-tags":{"latest":"1.2.2"},"versions":{"1.2.1":{"name":"node-bignumber","description":"A pure javascript implementation of BigIntegers and RSA crypto.","engines":{"node":">=0.4.0"},"version":"1.2.1","keywords":["bigintegers","rsa","pkcs"],"homepage":"http://www-cs-students.stanford.edu/~tjw/jsbn/","author":{"name":"Tom Wu","email":"tjw@cs.stanford.edu","url":"http://www-cs-students.stanford.edu/~tjw/"},"contributors":[{"name":"Joe Doyle","email":"joe@joedoyle.us"},{"name":"Jim Tupper","email":"github@tupper.org.uk"}],"main":"./lib/rsa","repository":{"type":"git","url":"https://github.com/JoeDoyle23/node-bignumber.git"},"readme":"node-bignumber\r\n===============\r\n\r\nA pure JavaScript implementation of large-integer math, capable of performing useful-sized (512-bit, 1024-bit) \r\nRSA encryption. Packaged to also be used in a node environment. \r\n\r\nThis library is a packaging of the original code from Tom Wu. The original files are available in the\r\noriginal/ folder or on his [site](http://www-cs-students.stanford.edu/~tjw/jsbn/).\r\n\r\nUpdated for the 1.2 release as well as the 1.3 release of [jsrsasign](https://github.com/kjur/jsrsasign).\r\n\r\nThis Fork\r\n---------\r\nNative Node hashing algorithms are used in place of the original pure JavaScript ones.\r\nBuffers are used as input and output instead of strings.  Still need to convert to Buffers all the way through.\r\n\r\nInstall\r\n-------\r\n\r\nUsing NPM, installing is as easy as:\r\n    npm install node-bignumber\r\n\r\nUsage\r\n-----\r\n\r\nFor help on using this in node.js, have a look at the tests. Here is a simple example on\r\nhow to generate a new key and use it to encrypt/decrypt a message.\r\n\r\n    var rsa = require(\"bigint\");\r\n    var key = new rsa.Key();\r\n\r\n    var message = \"All your bases are belong to us.\";\r\n    console.log(\"Message:\\n\"+message+\"\\n\");\r\n\r\n    // Generate a key\r\n    key.generate(1024, \"10001\");\r\n    console.log(\"Key:\\n\");\r\n    console.log(\"n:\" + key.n.toString(16));\r\n    console.log(\"e:\" + key.e.toString(16));\r\n    console.log(\"d:\" + key.d.toString(16));\r\n    console.log(\"\\n\");\r\n\r\n    // Encrypt\r\n    var encrypted = key.encrypt(message);\r\n    console.log(\"Encrypted:\\n\" + rsa.linebrk(encrypted, 64) + \"\\n\" );\r\n\r\n    // Decrypt\r\n    var decrypted = key.decrypt(encrypted);\r\n    console.log(\"Decrypted:\" + rsa.linebrk(decrypted, 64) + \"\\n\");\r\n\r\nDocumentation\r\n-------------\r\n\r\nThe original documentation is available at <http://www-cs-students.stanford.edu/~tjw/jsbn/>.\r\n\r\n\r\nLicense\r\n-------\r\n\r\nCopyright (c) 2003-2005  Tom Wu\r\nAll Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\nTHE SOFTWARE IS PROVIDED \"AS-IS\" AND WITHOUT WARRANTY OF ANY KIND, \r\nEXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY \r\nWARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  \r\n\r\nIN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,\r\nINDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER\r\nRESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF\r\nTHE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT\r\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\r\n\r\nIn addition, the following condition applies:\r\n\r\nAll redistributions must retain an intact copy of this copyright notice\r\nand disclaimer.\r\n","readmeFilename":"README.md","_id":"node-bignumber@1.2.1","dist":{"shasum":"266c9553352838539f661c92e58631be97917ea5","tarball":"https://registry.npmjs.org/node-bignumber/-/node-bignumber-1.2.1.tgz","integrity":"sha512-dl2o2abrhriK9rk4DKD1NFGkGjismRbacNRuAqXBoj3Z0TGmXgem1UoGgxMSBBNusR4q/wHmivUwAM83N2Vwbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVR0vefV6qXtdJq3L3cWliqcqAD0Z/kIz3M0LNeOWKSQIgHU66ncPTwyrpihklxJdQ977dTeZLrD93N06NDOkUQ7E="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"joedoyle23","email":"joe@joedoyle.us"},"maintainers":[{"name":"joedoyle23","email":"joe@joedoyle.us"}],"directories":{}},"1.2.2":{"name":"node-bignumber","description":"A pure javascript implementation of BigIntegers and RSA crypto.","engines":{"node":">=0.4.0"},"version":"1.2.2","keywords":["bigintegers","rsa","pkcs"],"homepage":"http://www-cs-students.stanford.edu/~tjw/jsbn/","author":{"name":"Tom Wu","email":"tjw@cs.stanford.edu","url":"http://www-cs-students.stanford.edu/~tjw/"},"contributors":[{"name":"Joe Doyle","email":"joe@joedoyle.us"},{"name":"Jim Tupper","email":"github@tupper.org.uk"}],"main":"./lib/rsa","repository":{"type":"git","url":"git+https://github.com/JoeDoyle23/node-bignumber.git"},"gitHead":"4615d42fc33d72573aaf81ea51fe2ec51912b503","bugs":{"url":"https://github.com/JoeDoyle23/node-bignumber/issues"},"_id":"node-bignumber@1.2.2","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-VoTZHmdFQpZH1+q1dz2qcHNCwTWsJg2T3PYwlAyDNFOfVhSYUKQBLFcCpCud+wJBGgCttGavZILaIggDIKqEQQ==","shasum":"f9df5d8c6b6a5f7eab6e4d6c1e61b7d52557a9f4","tarball":"https://registry.npmjs.org/node-bignumber/-/node-bignumber-1.2.2.tgz","fileCount":19,"unpackedSize":122201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHDuJCRA9TVsSAnZWagAAygkP/3Oez1aQob5s+dbxiNMa\nfXtune6HpBMRvFxycRA37z1TXzdo7u2PohPby9/2RmDHp8OUgBdOVozTUu36\n+KM4qi64HSfjyh0G/BwlO5kqpJfJ6EopATP6S7bmAsW1kt62E9ze1c3cCI62\nIhztdaEdyRkGJr7CpSsG6Ao9QWXHrnY/6JE/2/xdbDSj9khP/H+bHPo//Ma9\naFxbQnnM8UQDKvB1wsMAVtwA14i6Yr0jTZ7oUmUwXU/xcfsyOZmUSU2m3Osk\nOMbzak4fuQugcHhqgUPac1ppam6t7H2ESnCCeXEApnFtETIfcF0NUEy+XwLt\nI4BwY0CWXQl1Cb22WoWvda2kLdgdvNc3UUFsVEtmoxC6VTTNjYz/lfHyih2u\n0rk3RW1V8L9u9EWu9fnHwALZ4GlUiuwFhEMRMTvqxWbc28ZVjU1Rc1S8x0ca\nT0UarJzebOFj9ZGTAO71ozxnbPkwPcoD4UVs6T6Kr6asqzN5ygK4/XIVbBMY\nBgr51VP/JXZXIMo9TpyMpGplKXfao7FCwDjqJgBqItsaOxdxjCjDOcSEWrj6\n26RtvM5eZHUNJfRymBDZM+KjroUrnraC6RWURLOjGXTRFS+UKsvHl+JFbkyN\nzPjwTpLwKyFxqgrqb4TJLHOY1tJ6wMmfOKQgnsRQKVy3bMvio+DBPS5b5Lqg\nkVlw\r\n=LJvq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+gziJeBSDhcOag3uYUb1yHZ8s5u8Jmp/JFggrQoY/nAiEAtyvUnrpmFuA80ONacRST6zlsV7Aik6cw2CEfo1duzMo="}]},"_npmUser":{"name":"joedoyle23","email":"joe@joedoyle.us"},"directories":{},"maintainers":[{"name":"joedoyle23","email":"joe@joedoyle.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-bignumber_1.2.2_1629240200923_0.1956739853692233"},"_hasShrinkwrap":false}},"readme":"node-bignumber\n===============\n\nA pure JavaScript implementation of large-integer math, capable of performing useful-sized (512-bit, 1024-bit) \nRSA encryption. Packaged to also be used in a node environment. \n\nThis library is a packaging of the original code from Tom Wu. The original files are available in the\noriginal/ folder or on his [site](http://www-cs-students.stanford.edu/~tjw/jsbn/).\n\nUpdated for the 1.2 release as well as the 1.3 release of [jsrsasign](https://github.com/kjur/jsrsasign).\n\nThis Fork\n---------\nNative Node hashing algorithms are used in place of the original pure JavaScript ones.\nBuffers are used as input and output instead of strings.  Still need to convert to Buffers all the way through.\n\nInstall\n-------\n\nUsing NPM, installing is as easy as:\n    npm install node-bignumber\n\nUsage\n-----\n\nFor help on using this in node.js, have a look at the tests. Here is a simple example on\nhow to generate a new key and use it to encrypt/decrypt a message.\n\n    var rsa = require(\"bigint\");\n    var key = new rsa.Key();\n\n    var message = \"All your bases are belong to us.\";\n    console.log(\"Message:\\n\"+message+\"\\n\");\n\n    // Generate a key\n    key.generate(1024, \"10001\");\n    console.log(\"Key:\\n\");\n    console.log(\"n:\" + key.n.toString(16));\n    console.log(\"e:\" + key.e.toString(16));\n    console.log(\"d:\" + key.d.toString(16));\n    console.log(\"\\n\");\n\n    // Encrypt\n    var encrypted = key.encrypt(message);\n    console.log(\"Encrypted:\\n\" + rsa.linebrk(encrypted, 64) + \"\\n\" );\n\n    // Decrypt\n    var decrypted = key.decrypt(encrypted);\n    console.log(\"Decrypted:\" + rsa.linebrk(decrypted, 64) + \"\\n\");\n\nDocumentation\n-------------\n\nThe original documentation is available at <http://www-cs-students.stanford.edu/~tjw/jsbn/>.\n\n\nLicense\n-------\n\nCopyright (c) 2003-2005  Tom Wu\nAll Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS-IS\" AND WITHOUT WARRANTY OF ANY KIND, \nEXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY \nWARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  \n\nIN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,\nINDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER\nRESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF\nTHE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\nIn addition, the following condition applies:\n\nAll redistributions must retain an intact copy of this copyright notice\nand disclaimer.\n\nLicensing For Code used in rsa.js\n---------------------------------\n  \nrsasign-1.2.js (c) 2012 Kenji Urushima | kjur.github.com/jsrsasign/license\n\nrsa-sign.js - adding signing functions to RSAKey class.\n\nversion: 1.2.1 (08 May 2012)\n\nCopyright (c) 2010-2012 Kenji Urushima (kenji.urushima@gmail.com)\n\nThis software is licensed under the terms of the MIT License.\nhttp://kjur.github.com/jsrsasign/license/\n\nThe above copyright and license notice shall be\nincluded in all copies or substantial portions of the Software.\n  \n","maintainers":[{"name":"joedoyle23","email":"joe@joedoyle.us"}],"time":{"modified":"2022-06-21T12:20:20.153Z","created":"2012-12-17T02:28:25.182Z","1.2.1":"2012-12-17T02:28:25.947Z","1.2.2":"2021-08-17T22:43:21.086Z"},"author":{"name":"Tom Wu","email":"tjw@cs.stanford.edu","url":"http://www-cs-students.stanford.edu/~tjw/"},"repository":{"type":"git","url":"git+https://github.com/JoeDoyle23/node-bignumber.git"},"users":{"306766053":true,"trusktr":true},"homepage":"http://www-cs-students.stanford.edu/~tjw/jsbn/","keywords":["bigintegers","rsa","pkcs"],"contributors":[{"name":"Joe Doyle","email":"joe@joedoyle.us"},{"name":"Jim Tupper","email":"github@tupper.org.uk"}],"bugs":{"url":"https://github.com/JoeDoyle23/node-bignumber/issues"},"readmeFilename":"README.md"}