{"_id":"key-forge","_rev":"437576","name":"key-forge","description":"A simple random key generator for use with Node.","dist-tags":{"latest":"1.0.0-beta-01"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"time":{"modified":"2021-08-05T06:21:43.000Z","created":"2013-08-30T16:40:07.718Z","1.0.0-beta-01":"2014-10-22T05:07:26.733Z","0.1.3":"2014-01-22T09:30:57.997Z","0.1.2":"2014-01-22T09:27:16.522Z","0.1.1":"2014-01-22T09:26:04.865Z","0.1.0":"2014-01-18T00:01:11.225Z","0.0.5":"2013-12-02T03:20:26.682Z","0.0.4":"2013-09-05T11:15:06.440Z","0.0.3":"2013-08-30T16:54:19.537Z","0.0.2":"2013-08-30T16:48:28.069Z","0.0.1":"2013-08-30T16:40:07.718Z"},"users":{},"author":{"name":"Dan Yoder"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"versions":{"1.0.0-beta-01":{"name":"key-forge","version":"1.0.0-beta-01","description":"A simple random key generator for use with Node.","main":"lib/index.js","scripts":{"prepublish":"coffee -o lib/ -c src/*.coffee","test":"coffee src/test.coffee"},"bin":{"key-forge":"bin/key-forge"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"coffee-script":"~1.6.3","testify":"~0.2.7"},"bugs":{"url":"https://github.com/pandastrike/key-forge/issues"},"homepage":"https://github.com/pandastrike/key-forge","_id":"key-forge@1.0.0-beta-01","dist":{"shasum":"a112711b2e6dd4399acc91acf3a312b9bbd9481d","size":3785,"noattachment":false,"key":"/key-forge/-/key-forge-1.0.0-beta-01.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-1.0.0-beta-01.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1413954446733,"_cnpm_publish_time":1413954446733,"_hasShrinkwrap":false},"0.1.3":{"name":"key-forge","version":"0.1.3","description":"A simple random key generator for use with Node.","main":"lib/index.js","scripts":{"prepublish":"coffee -o lib/ -c src/*.coffee","test":"coffee src/test.coffee"},"bin":{"key-forge":"bin/key-forge"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"coffee-script":"~1.6.3","testify":"~0.2.7"},"_id":"key-forge@0.1.3","dist":{"shasum":"eed00adedc29780935f24eaf411098856b95de6f","size":3615,"noattachment":false,"key":"/key-forge/-/key-forge-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1390383057997,"_cnpm_publish_time":1390383057997,"_hasShrinkwrap":false},"0.1.2":{"name":"key-forge","version":"0.1.2","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"prepublish":"coffee -o lib/ -c src/*.coffee","test":"coffee src/test.coffee"},"bin":{"key-forge":"bin/key-forge"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"coffee-script":"~1.6.3","testify":"~0.2.7"},"_id":"key-forge@0.1.2","dist":{"shasum":"9bfe0a8dc2407bdb6a6b0efec86395608699c3b7","size":3621,"noattachment":false,"key":"/key-forge/-/key-forge-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1390382836522,"_cnpm_publish_time":1390382836522,"_hasShrinkwrap":false},"0.1.1":{"name":"key-forge","version":"0.1.1","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"prepublish":"coffee -o lib/ -c src/*.coffee","test":"coffee test.coffee"},"bin":{"key-forge":"bin/key-forge"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"coffee-script":"~1.6.3","testify":"~0.2.7"},"_id":"key-forge@0.1.1","dist":{"shasum":"5ccac2f67e3183e50dd52fc17a9f9b1267edb794","size":3620,"noattachment":false,"key":"/key-forge/-/key-forge-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1390382764865,"_cnpm_publish_time":1390382764865,"_hasShrinkwrap":false},"0.1.0":{"name":"key-forge","version":"0.1.0","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"testify":"~0.2.7"},"bugs":{"url":"https://github.com/pandastrike/key-forge/issues"},"_id":"key-forge@0.1.0","dist":{"shasum":"f7947189ca62a32ccc91e2716e6a8695752c36d3","size":2820,"noattachment":false,"key":"/key-forge/-/key-forge-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"automatthew","email":"automatthew@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1390003271225,"_cnpm_publish_time":1390003271225,"_hasShrinkwrap":false},"0.0.5":{"name":"key-forge","version":"0.0.5","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"testify":"~0.2.7"},"_id":"key-forge@0.0.5","dist":{"shasum":"528af3e6b92e35e64e7ca49ad65d5106174de43e","size":2539,"noattachment":false,"key":"/key-forge/-/key-forge-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1385954426682,"_cnpm_publish_time":1385954426682,"_hasShrinkwrap":false},"0.0.4":{"name":"key-forge","version":"0.0.4","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"testify":"~0.2.7"},"bugs":{"url":"https://github.com/pandastrike/key-forge/issues"},"_id":"key-forge@0.0.4","dist":{"shasum":"615620ab03498d2b0ec1a9ec44c4b704387d7be9","size":2439,"noattachment":false,"key":"/key-forge/-/key-forge-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.0.4.tgz"},"_from":"./","_npmVersion":"1.3.2","_npmUser":{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1378379706440,"_cnpm_publish_time":1378379706440,"_hasShrinkwrap":false},"0.0.3":{"name":"key-forge","version":"0.0.3","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"testify":"~0.2.7"},"_id":"key-forge@0.0.3","dist":{"shasum":"ce7a4e68b007e834f30ce444276742a344793b81","size":2411,"noattachment":false,"key":"/key-forge/-/key-forge-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1377881659537,"_cnpm_publish_time":1377881659537,"_hasShrinkwrap":false},"0.0.2":{"name":"key-forge","version":"0.0.2","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","devDependencies":{"testify":"~0.2.7"},"_id":"key-forge@0.0.2","dist":{"shasum":"b8faeff6d7fb2a386085114813b49f68bee241f7","size":2235,"noattachment":false,"key":"/key-forge/-/key-forge-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1377881308069,"_cnpm_publish_time":1377881308069,"_hasShrinkwrap":false},"0.0.1":{"name":"key-forge","version":"0.0.1","description":"A simple random key generator for use with Node.","main":"index.coffee","scripts":{"test":"coffee test.coffee"},"repository":{"type":"git","url":"git://github.com/pandastrike/key-forge.git"},"keywords":["key","random","bytes","generate"],"author":{"name":"Dan Yoder"},"license":"MIT","readmeFilename":"README.md","gitHead":"b7fc37fec30296c2203e791ecf379b19787b3b8e","_id":"key-forge@0.0.1","dist":{"shasum":"18b00bace01dd4502f0c0b89912496b03ef75491","size":2203,"noattachment":false,"key":"/key-forge/-/key-forge-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/key-forge/download/key-forge-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dyoder","email":"danielyoder@gmail.com"},"maintainers":[{"name":"automatthew","email":"automatthew@gmail.com"},{"name":"dyoder","email":"danielyoder@gmail.com"},{"name":"maheshyellai","email":"mahesh.yellai@gmail.com"}],"directories":{},"publish_time":1377880807718,"_cnpm_publish_time":1377880807718,"_hasShrinkwrap":false}},"readme":"Key Forge\n=========\n\nA simple key generation library for use with Node. More or less a convenience wrapper around Node's Crypto and Buffer libraries.\n\n## Install\n\n    npm install key-forge\n\n## Usage\n\nAlthough Key Forge has a number of functions that you can use to fine-tune your key generation, mostly what you want is this:\n\n    {randomKey} = require \"key-forge\"\n    keySize = 16 # bytes\n    key = randomKey keySize # defaults to hex encoding\n    key = randomKey keySize, \"hex\"\n    key = randomKey keySize, \"base64\"\n    key = randomKey keySize, \"base64url\"\n\n\n## Notes on Encodings\n\n* \"hex\": direct output from Node.js Buffer.toString(\"hex\")\n\n* \"base64\": output from Buffer.toString(\"base64\") with the \"=\" padding stripped.\n\n* \"base64url\": Based on http://tools.ietf.org/html/rfc4648#section-5, with padding stripped.\n\n","_attachments":{},"homepage":"https://github.com/pandastrike/key-forge","bugs":{"url":"https://github.com/pandastrike/key-forge/issues"},"license":"MIT"}