{"name":"blueimp-md5","version":"2.4.0","title":"JavaScript MD5","description":"JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers.","keywords":["javascript","md5"],"homepage":"https://github.com/blueimp/JavaScript-MD5","author":{"name":"Sebastian Tschan","url":"https://blueimp.net"},"contributors":[{"name":"Paul Johnston","url":"http://pajhome.org.uk/crypt/md5"}],"repository":{"type":"git","url":"git://github.com/blueimp/JavaScript-MD5.git"},"license":"MIT","devDependencies":{"chai":"3.5.0","mocha":"3.1.0","standard":"8.3.0","uglify-js":"2.7.3"},"scripts":{"lint":"standard js/*.js test/*.js","unit":"mocha","test":"npm run lint && npm run unit","build":"cd js && uglifyjs md5.js -c -m -o md5.min.js --source-map md5.min.js.map","preversion":"npm test","version":"npm run build && git add -A js","postversion":"git push --tags origin master master:gh-pages && npm publish"},"main":"js/md5.js","gitHead":"1cb7917fd92dc1f374c46cbfac7f759eab31514c","bugs":{"url":"https://github.com/blueimp/JavaScript-MD5/issues"},"_id":"blueimp-md5@2.4.0","_shasum":"33c007db00e954083f57647e6353e2aa1aa1002a","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"blueimp","email":"mail@blueimp.net"},"dist":{"shasum":"33c007db00e954083f57647e6353e2aa1aa1002a","tarball":"http://registry-npm.ywwl.com/blueimp-md5/download/blueimp-md5-2.4.0.tgz","integrity":"sha512-aQYJvn0bUFoGYtq7Tvyjr58t5rrl5g4+heS+F502AiECXhgAUcyX3AxLs/xdf+XJKVOiZsUi03qUkFnn347gxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDO+4sV+5+GBTA7sWb3ss2dAOnRSQEVYzSZw/OIFR76/gIhAMmAVjmin51FZDhRETwWe19cwvxFL7RP3uViiZPjphaT"}],"size":142191,"noattachment":false,"key":"/blueimp-md5/-/blueimp-md5-2.4.0.tgz"},"maintainers":[{"name":"blueimp","email":"sebastian.tschan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/blueimp-md5-2.4.0.tgz_1475960719713_0.11790181114338338"},"directories":{},"readme":"# JavaScript MD5\n\n## Contents\n\n- [Demo](https://blueimp.github.io/JavaScript-MD5/)\n- [Description](#description)\n- [Usage](#usage)\n  - [Client-side](#client-side)\n  - [Server-side](#server-side)\n- [Requirements](#requirements)\n- [API](#api)\n- [Tests](#tests)\n- [License](#license)\n\n## Description\n\nJavaScript [MD5](https://en.wikipedia.org/wiki/MD5) implementation.  \nCompatible with server-side environments like [Node.js](https://nodejs.org/),\nmodule loaders like [RequireJS](https://requirejs.org/) or\n[webpack](https://webpack.js.org/) and all web browsers.\n\n## Usage\n\n### Client-side\n\nInstall the **blueimp-md5** package with [NPM](https://www.npmjs.org/):\n\n```sh\nnpm install blueimp-md5\n```\n\nInclude the (minified) JavaScript [MD5](https://en.wikipedia.org/wiki/MD5)\nscript in your HTML markup:\n\n```html\n<script src=\"js/md5.min.js\"></script>\n```\n\nIn your application code, calculate the\n([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded)\n[MD5](https://en.wikipedia.org/wiki/MD5) hash of a string by calling the **md5**\nmethod with the string as argument:\n\n```js\nvar hash = md5('value') // \"2063c1608d6e0baf80249c42e2be5804\"\n```\n\n### Server-side\n\nThe following is an example how to use the JavaScript MD5 module on the\nserver-side with [Node.js](https://nodejs.org/).\n\nInstall the **blueimp-md5** package with [NPM](https://www.npmjs.org/):\n\n```sh\nnpm install blueimp-md5\n```\n\nAdd a file **server.js** with the following content:\n\n```js\nrequire('http')\n  .createServer(function (req, res) {\n    // The md5 module exports the md5() function:\n    var md5 = require('./md5'),\n      // Use the following version if you installed the package with npm:\n      // var md5 = require(\"blueimp-md5\"),\n      url = require('url'),\n      query = url.parse(req.url).query\n    res.writeHead(200, { 'Content-Type': 'text/plain' })\n    // Calculate and print the MD5 hash of the url query:\n    res.end(md5(query))\n  })\n  .listen(8080, 'localhost')\nconsole.log('Server running at http://localhost:8080/')\n```\n\nRun the application with the following command:\n\n```sh\nnode server.js\n```\n\n## Requirements\n\nThe JavaScript MD5 script has zero dependencies.\n\n## API\n\nCalculate the ([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded)\n[MD5](https://en.wikipedia.org/wiki/MD5) hash of a given string value:\n\n```js\nvar hash = md5('value') // \"2063c1608d6e0baf80249c42e2be5804\"\n```\n\nCalculate the ([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded)\n[HMAC](https://en.wikipedia.org/wiki/HMAC)-MD5 hash of a given string value and\nkey:\n\n```js\nvar hash = md5('value', 'key') // \"01433efd5f16327ea4b31144572c67f6\"\n```\n\nCalculate the raw [MD5](https://en.wikipedia.org/wiki/MD5) hash of a given\nstring value:\n\n```js\nvar hash = md5('value', null, true)\n```\n\nCalculate the raw [HMAC](https://en.wikipedia.org/wiki/HMAC)-MD5 hash of a given\nstring value and key:\n\n```js\nvar hash = md5('value', 'key', true)\n```\n\n## Tests\n\nThe JavaScript MD5 project comes with\n[Unit Tests](https://en.wikipedia.org/wiki/Unit_testing).  \nThere are two different ways to run the tests:\n\n- Open test/index.html in your browser or\n- run `npm test` in the Terminal in the root path of the repository package.\n\nThe first one tests the browser integration, the second one the\n[Node.js](https://nodejs.org/) integration.\n\n## License\n\nThe JavaScript MD5 script is released under the\n[MIT license](https://opensource.org/licenses/MIT).\n","publish_time":1475960721730,"_cnpm_publish_time":1475960721730,"dist-tags":{"latest":"2.19.0"}}