{"_id":"randomhex","_rev":"4605406","name":"randomhex","description":"Will generate a random HEX string of a specifc byte size.","dist-tags":{"latest":"0.1.5"},"maintainers":[{"name":"frozeman","email":""}],"time":{"modified":"2026-04-10T17:35:39.000Z","created":"2017-03-23T19:40:49.950Z","0.1.5":"2017-03-24T08:57:35.912Z","0.1.4":"2017-03-24T08:30:01.227Z","0.1.3":"2017-03-24T08:20:43.588Z","0.1.2":"2017-03-24T08:06:41.970Z","0.1.1":"2017-03-23T20:12:00.258Z","0.1.0":"2017-03-23T19:40:49.950Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"versions":{"0.1.5":{"name":"randomhex","version":"0.1.5","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"src/index.js","browser":{"crypto":"./src/browser.js"},"scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"f610b68f25df5e39ff4a96ac57ea522f898d95c4","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.5","_shasum":"baceef982329091400f2a2912c6cd02f1094f585","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"baceef982329091400f2a2912c6cd02f1094f585","size":1774,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.5.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/randomhex-0.1.5.tgz_1490345855234_0.4510910864919424"},"directories":{},"publish_time":1490345855912,"_hasShrinkwrap":false,"_cnpm_publish_time":1490345855912,"_cnpmcore_publish_time":"2021-12-16T14:35:09.792Z"},"0.1.4":{"name":"randomhex","version":"0.1.4","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"src/index.js","browser":{"./crypto.js":"src/browser.js"},"scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"3d4ef2bba2510b2d66aeb3cac3796b18da6b92e8","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.4","_shasum":"ead54be360f5079cd57b7d1bd344933612eaa2af","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"ead54be360f5079cd57b7d1bd344933612eaa2af","size":1771,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.4.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/randomhex-0.1.4.tgz_1490344199680_0.502774344291538"},"directories":{},"publish_time":1490344201227,"_hasShrinkwrap":false,"_cnpm_publish_time":1490344201227,"_cnpmcore_publish_time":"2021-12-16T14:35:10.031Z"},"0.1.3":{"name":"randomhex","version":"0.1.3","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"src/index.js","browser":{"crypto.js":"src/browser.js"},"scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"2cd2860742334aed6e027c4407c4b3ee47debcea","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.3","_shasum":"4977c26e9dde9e8d5f7f4e343879b33f7fdff8df","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"4977c26e9dde9e8d5f7f4e343879b33f7fdff8df","size":1769,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.3.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/randomhex-0.1.3.tgz_1490343641703_0.26865842123515904"},"directories":{},"publish_time":1490343643588,"_hasShrinkwrap":false,"_cnpm_publish_time":1490343643588,"_cnpmcore_publish_time":"2021-12-16T14:35:10.263Z"},"0.1.2":{"name":"randomhex","version":"0.1.2","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"src/index.js","browser":{"crypto.js":"src/browser.js"},"scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"cd6a244b84e42a0d166a746ac5ba542065b16e87","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.2","_shasum":"13653a87ff7fc256c323a5cfa6069114af8a9045","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"13653a87ff7fc256c323a5cfa6069114af8a9045","size":1764,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.2.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/randomhex-0.1.2.tgz_1490342800099_0.892615222139284"},"directories":{},"publish_time":1490342801970,"_hasShrinkwrap":false,"_cnpm_publish_time":1490342801970,"_cnpmcore_publish_time":"2021-12-16T14:35:10.461Z"},"0.1.1":{"name":"randomhex","version":"0.1.1","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"index.js","browser":{"crypto.js":"crypto-browser.js"},"scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"6c26724df3a938128249746d77d8f5ee0db17356","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.1","_shasum":"3655b374bddf5e17245fb7d122b5f544056b732c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"3655b374bddf5e17245fb7d122b5f544056b732c","size":1760,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.1.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/randomhex-0.1.1.tgz_1490299918333_0.8438931670971215"},"directories":{},"publish_time":1490299920258,"_hasShrinkwrap":false,"_cnpm_publish_time":1490299920258,"_cnpmcore_publish_time":"2021-12-16T14:35:10.712Z"},"0.1.0":{"name":"randomhex","version":"0.1.0","description":"Will generate a random HEX string of a specifc byte size.","repository":{"type":"git","url":"git+https://github.com/frozeman/randomHex.git"},"license":"MIT","main":"index.js","scripts":{"test":"mocha test.js"},"devDependencies":{"chai":"^3.0.0"},"gitHead":"95fe7576beaed89b4e5a1f2aacd3d3a00c6da018","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"homepage":"https://github.com/frozeman/randomHex#readme","_id":"randomhex@0.1.0","_shasum":"2b1d7628e7ae54338c0662eb619fe37935bc7a18","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"frozeman","email":"fabian@frozeman.de"},"dist":{"shasum":"2b1d7628e7ae54338c0662eb619fe37935bc7a18","size":1653,"noattachment":false,"key":"/randomhex/-/randomhex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/randomhex/download/randomhex-0.1.0.tgz"},"maintainers":[{"name":"frozeman","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/randomhex-0.1.0.tgz_1490298049252_0.4582168171182275"},"directories":{},"publish_time":1490298049950,"_hasShrinkwrap":false,"_cnpm_publish_time":1490298049950,"_cnpmcore_publish_time":"2021-12-16T14:35:10.943Z"}},"readme":"randomHex\n===\n\nWill create a random bytes HEX string, in node.js and browsers with crypto.\n\nThis library uses the [crypto.randomBytes()](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) in node.js,\nand [crypto.getRandomValues()](https://developer.mozilla.org/en/docs/Web/API/RandomSource/getRandomValues) in the browser.\n\nBoth of those random generators should provide cryptographically strong pseudo-random data. \n\n```\n$ npm install randomhex\n```\n\n\n\n```js\nvar randomHex = require('randomhex');\n\nrandomHex(16); // get 16 random bytes as HEX string (0x + 32 chars)\n> \"0xd59e72dbf8612798aa1674834c80894e\"\n\nrandomHex(32, console.log); // get 32 random bytes as HEX string (0x + 64 chars)\n> null \"0x409de75fc727d81a7d9f59580130ce3e76124679eb5c4647eb18c40512450c29\"\n\n```\n","_attachments":{},"homepage":"https://github.com/frozeman/randomHex#readme","bugs":{"url":"https://github.com/frozeman/randomHex/issues"},"license":"MIT"}