{"_id":"rbytes","_rev":"100792","name":"rbytes","description":"Generates cryptographically secure random byte sequences","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"akdubya","email":"dev@aleks.cc"},{"name":"soarez","email":"igorsoarez@gmail.com"}],"time":{"modified":"2021-06-03T10:34:54.000Z","created":"2011-01-07T01:58:11.128Z","1.1.0":"2014-07-04T15:47:47.759Z","1.0.0":"2013-07-08T16:18:12.224Z","0.0.1":"2011-01-07T01:58:11.128Z","0.0.2":"2011-01-07T01:58:11.128Z"},"users":{},"author":{"name":"Aleksander Williams"},"repository":{"type":"git","url":"https://github.com/Soarez/rbytes.git"},"versions":{"1.1.0":{"name":"rbytes","version":"1.1.0","description":"Generates cryptographically secure random byte sequences","author":{"name":"Aleksander Williams"},"contributors":[],"engines":{"node":">=0.3.0"},"url":"http://akdubya.github.com/rbytes/","keywords":["random","crypto"],"main":"./index","repository":{"type":"git","url":"https://github.com/Soarez/rbytes.git"},"scripts":{"install":"node-gyp configure build"},"gitHead":"65412e04b4522037a1c29fd2a89c2734d35f5d01","bugs":{"url":"https://github.com/Soarez/rbytes/issues"},"homepage":"https://github.com/Soarez/rbytes","_id":"rbytes@1.1.0","_shasum":"50234097e70c079bcdf5227494311b1038f3d619","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"soarez","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"akdubya","email":"dev@aleks.cc"},{"name":"soarez","email":"igorsoarez@gmail.com"}],"dist":{"shasum":"50234097e70c079bcdf5227494311b1038f3d619","size":3523,"noattachment":false,"key":"/rbytes/-/rbytes-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rbytes/download/rbytes-1.1.0.tgz"},"directories":{},"publish_time":1404488867759,"_cnpm_publish_time":1404488867759,"_hasShrinkwrap":false},"1.0.0":{"name":"rbytes","version":"1.0.0","description":"Generates cryptographically secure random byte sequences","author":{"name":"Aleksander Williams"},"contributors":[],"engines":{"node":">=0.3.0"},"url":"http://akdubya.github.com/rbytes/","keywords":["random","crypto"],"main":"./index","scripts":{"install":"node-gyp configure build"},"readmeFilename":"README.md","_id":"rbytes@1.0.0","dist":{"shasum":"4eeb85c457f710d8147329d5eed5cd02c798fa4d","size":3511,"noattachment":false,"key":"/rbytes/-/rbytes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rbytes/download/rbytes-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.24","_npmUser":{"name":"soarez","email":"igorsoarez@gmail.com"},"maintainers":[{"name":"akdubya","email":"dev@aleks.cc"},{"name":"soarez","email":"igorsoarez@gmail.com"}],"directories":{},"publish_time":1373300292224,"_hasShrinkwrap":false,"_cnpm_publish_time":1373300292224},"0.0.1":{"name":"rbytes","version":"0.0.1","description":"Generates cryptographically secure random byte sequences","author":{"name":"Aleksander Williams"},"contributors":[],"url":"http://akdubya.github.com/rbytes/","keywords":["random","crypto"],"main":"./index","scripts":{"install":"node-waf configure build"},"_id":"rbytes@0.0.1","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-3","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"04d8dd54562344384b2829e95b27609c7c105ed8","size":7509,"noattachment":false,"key":"/rbytes/-/rbytes-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rbytes/download/rbytes-0.0.1.tgz"},"directories":{},"publish_time":1294365491128,"maintainers":[{"name":"akdubya","email":"dev@aleks.cc"},{"name":"soarez","email":"igorsoarez@gmail.com"}],"_hasShrinkwrap":false,"_cnpm_publish_time":1294365491128},"0.0.2":{"name":"rbytes","version":"0.0.2","description":"Generates cryptographically secure random byte sequences","author":{"name":"Aleksander Williams"},"contributors":[],"engines":{"node":">=0.3.0"},"url":"http://akdubya.github.com/rbytes/","keywords":["random","crypto"],"main":"index","scripts":{"install":"node-waf configure build"},"dependencies":{},"devDependencies":{},"_id":"rbytes@0.0.2","_engineSupported":true,"_npmVersion":"1.0.5","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"f876a6321dd94a484c97c0f9ff2e1e7fe3cb8a14","size":3617,"noattachment":false,"key":"/rbytes/-/rbytes-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rbytes/download/rbytes-0.0.2.tgz"},"directories":{},"publish_time":1294365491128,"maintainers":[{"name":"akdubya","email":"dev@aleks.cc"},{"name":"soarez","email":"igorsoarez@gmail.com"}],"_hasShrinkwrap":false,"_cnpm_publish_time":1294365491128}},"readme":"rbytes\n======\n\n> Generates cryptographically secure random byte sequences\n\nrbytes generates cryptographically secure random byte sequences using native bindings to OpenSSL's [pseudo random number generator](http://www.openssl.org/docs/crypto/rand.html). Use rbytes to generate session keys, UUIDs or anything else that requires fast generation of blocks of random data.\n\nSynopsis\n--------\n\nCreate a buffer holding 16 random bytes:\n\n    var rbytes = require('rbytes');\n\n    var rbuff = rbytes.randomBytes(16);\n    // <Buffer 69 5d 5d f6 42 04 1b 86 f2 77 5d 2b 4f 0f 72 26>\n\nrbytes adds two convenience methods to Node's Buffer class for easy conversion between Buffers and hex strings:\n\n    rbuff.toHex();\n    // '695d5df642041b86f2775d2b4f0f7226'\n\n    var buff = Buffer(1);\n    buff.writeHex('f);\n    // <Buffer 0f>\n\n    buff.writeHex('g);\n    // TypeError: Invalid hex string\n\nInstallation\n------------\n\n    $ npm install rbytes\n\nrbytes requires node version 0.3.0 or higher.\n\nNotes\n-----\n\nrbytes binds to OpenSSL's [RAND_bytes](http://www.openssl.org/docs/crypto/RAND_bytes.html) function, which generates cryptographically strong pseudorandom bytes. This function does not block, however it will throw an error if there isn't enough random seed data on your system. Support is planned for RAND_pseudo_bytes, which are guaranteed to be available at the cost of being (potentially) less secure.\n\nSimple random number generation (like Math.rand()) is planned for a future version.","_attachments":{},"homepage":"https://github.com/Soarez/rbytes","bugs":{"url":"https://github.com/Soarez/rbytes/issues"}}