{"name":"blueimp-md5","version":"2.16.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":"4","eslint":"7","eslint-config-blueimp":"2","eslint-config-prettier":"6","eslint-plugin-jsdoc":"25","eslint-plugin-prettier":"3","mocha":"7","prettier":"2","uglify-js":"3"},"eslintConfig":{"extends":["blueimp","plugin:jsdoc/recommended","plugin:prettier/recommended"],"env":{"browser":true,"node":true}},"eslintIgnore":["js/*.min.js","test/vendor"],"prettier":{"arrowParens":"avoid","proseWrap":"always","semi":false,"singleQuote":true,"trailingComma":"none"},"scripts":{"lint":"eslint .","unit":"mocha","test":"npm run lint && npm run unit","build":"cd js && uglifyjs md5.js -c -m -o md5.min.js --source-map url=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":"ed24666b03e7f3af777da5d487b24fbb6f91b673","bugs":{"url":"https://github.com/blueimp/JavaScript-MD5/issues"},"_id":"blueimp-md5@2.16.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-j4nzWIqEFpLSbdhUApHRGDwfXbV8ALhqOn+FY5L6XBdKPAXU9BpGgFSbDsgqogfqPPR9R2WooseWCsfhfEC6uQ==","shasum":"9018bb805e4ee05512e0e8cbdb9305eeecbdc87c","tarball":"http://registry-npm.ywwl.com/blueimp-md5/download/blueimp-md5-2.16.0.tgz","fileCount":6,"unpackedSize":28970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevJqgCRA9TVsSAnZWagAAzBIQAJSUiJr0x7e0UNevw9Kv\n3bZ780uZIGbkh0Yd5EKXaIoDnxFRMhU9JJvIoKgal1msB8++F6OQKy5cLP4E\n633Zq+nbrO/qu+NFWLjl6zeV3OcsXr/RkmhE9mzoH/1GGrsjAPo/1SAEKWaD\nhjaFDeXg7DxS/HmCaECpRcCxHbA7imwsNG5XSrNv+WnH8bNE04h1WV/jSjpn\n8CXTkwCLrIqFOJ8mU1+Dz8oCvVY1+1UyTP56XdmpSD6X/szu6fh3F6TjhWD/\n/+eOJVk7Asy7TwLKE9O/ykhbpkl2NwBUjD9+2dpKGr5YJqDB6PsaWv6js138\n1eU4x4THglHaey1d5DkXH2JA0q33cGka+qaLFHxefvzU9GMyEzTwjgizj09o\nYdKzHFjbFnrpMGaG6tBG8AQ7fUGvGtAZb9BBpz90nH9FmGm/l1unmDiVCjp2\n3ipQb6BHGhSYMgBf3vg34fRHIoGmABa1XdXOulpGtQqqqhmyJrDBgynsbBcA\nvVK67urCyGfp1RT5rkfq9OfSc8dyX8N3JOwLvSpgD48/LqUEAPr4ZvII9jjB\n2k+pKZLkOW1UXwYT7+0Z5ZOFv3QSpZfLjqPtEbn+W/NGPljed6VNJgUz9O1D\nTCQ659vPKAlry2d+j8zMyeF9iNr//KSVKZBRAAYfqozdfMoF0kIYWucpimH1\nkXVB\r\n=NO5c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGgtE2iXPrmlOvRLsy+0IMh2wuchCaehMwZ85LEL0ebAiAB+1D2A34j5bGKwAjn14P3UOf0I7x/KRccCz6rQlzZXA=="}],"size":8939,"noattachment":false,"key":"/blueimp-md5/-/blueimp-md5-2.16.0.tgz"},"maintainers":[{"name":"blueimp","email":"sebastian.tschan@gmail.com"}],"_npmUser":{"name":"blueimp","email":"mail@blueimp.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blueimp-md5_2.16.0_1589418655462_0.9885552523188907"},"_hasShrinkwrap":false,"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":1589418655618,"_cnpm_publish_time":1589418655618,"dist-tags":{"latest":"2.19.0"}}