{"_id":"md5hex","_rev":"4521990","name":"md5hex","description":"Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"ccheever","email":"ccheever@gmail.com"}],"time":{"modified":"2026-04-09T13:09:03.000Z","created":"2015-06-02T11:00:37.555Z","1.0.0":"2015-06-02T11:00:37.555Z"},"users":{},"author":{"name":"exponent.team@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/650Industries/md5hex.git"},"versions":{"1.0.0":{"name":"md5hex","version":"1.0.0","description":"Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/650Industries/md5hex.git"},"keywords":["md5hex","md5","hex","hash","crypto"],"author":{"name":"exponent.team@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/650Industries/md5hex/issues"},"homepage":"https://github.com/650Industries/md5hex#readme","gitHead":"6663a1403a9d349038fe762f16deebb943ae5af5","_id":"md5hex@1.0.0","_shasum":"ed74b477a2ee9369f75efee2f08d5915e52a42e8","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"ccheever","email":"ccheever@gmail.com"},"dist":{"shasum":"ed74b477a2ee9369f75efee2f08d5915e52a42e8","size":2052,"noattachment":false,"key":"/md5hex/-/md5hex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/md5hex/download/md5hex-1.0.0.tgz"},"maintainers":[{"name":"ccheever","email":"ccheever@gmail.com"}],"directories":{},"publish_time":1433242837555,"_hasShrinkwrap":false,"_cnpm_publish_time":1433242837555,"_cnpmcore_publish_time":"2021-12-16T21:00:02.025Z"}},"readme":"# md5hex\nThin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer\n\n```js\n// Basic usage\nvar hexHash = md5hex('A string you want to hash'); // (You can also pass in a buffer)\n// 'afb6e4ac5196aa6cddcfbd8fe26cf65b'\n\n\n// Optional second argument lets you trim the length\nvar hexHash = md5hex('A string you want to hash', 6);\n// 'afb6e4'\n\n// Or you can give an options object as the second argument to add a salt\nvar hexHash = md5hex('A string you want to prefix with a salt', {salt: 'MYSALT!'})\n// Same as md5hex('MYSALT!' + 'A string you want to prefix with a salt')\n\nvar hexHash = md5hex('A string you want to prefix with a salt', {saltPrefix: 'SALT!', saltSuffix: 'MORESALT!'})\n// Same as md5hex('SALT!' + 'A string you want to prefix with a salt' + 'MORESALT!')\n\n// And control the length through the options object\nvar hexHash = md5hex('A string you want a short hash of', {length: 6});\n// '30540f'\n\n\n\n```\n","_attachments":{},"homepage":"https://github.com/650Industries/md5hex#readme","bugs":{"url":"https://github.com/650Industries/md5hex/issues"},"license":"MIT"}