{"name":"blueimp-md5","version":"2.17.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":"30","eslint-plugin-prettier":"3","mocha":"8","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":"c89150d088ac8969bdec868e837ffb157c1613d8","bugs":{"url":"https://github.com/blueimp/JavaScript-MD5/issues"},"_id":"blueimp-md5@2.17.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-x5PKJHY5rHQYaADj6NwPUR2QRCUVSggPzrUKkeENpj871o9l9IefJbO2jkT5UvYykeOK9dx0VmkIo6dZ+vThYw==","shasum":"f4fcac088b115f7b4045f19f5da59e9d01b1bb96","tarball":"http://registry-npm.ywwl.com/blueimp-md5/download/blueimp-md5-2.17.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\nwsFcBAEBCAAQBQJfHPAWCRA9TVsSAnZWagAAvFMP/iirYVIoprgeNJPvrMsi\nfakMLqazMErPeUvkQoCBkpKjKDBS6Oac/cznHRhNZgBg7oF6gmNIzfHNolvj\nHVTBZe3Qj8zzviVdXzwJxU313nPLFjz6GfDhhGU95c7WH1ET43kwdL3JTZ7Q\nJyBmfSv3h/VjyTK7ix/cAudtrue5SS3T4eF+CnnY5GLs9puMljnM5NLODDQH\nYNQksqHaTYgj3oLIgWQscMH4xwsFmK1dqOeTl88cIkrLWCLPhQ1slvtADIjR\n9tQfsQqeWXQI6aFrnzIo/sF5BGzsOMEx7jO4S5FZ33Y6b/7oeXkEG7viNrmW\n4+ORaj/VP5p/V5kuozKYb2+h8s4wWkrNSXjDzFj/Qf3Qf6qHrdt6q0F++zki\nytwRmnpB4zybbVDYtNMHlgBWAKAtZTq5iq6LhTqt1RW4BOM728CUGbUBa2pR\nz7gDRtg5CCJpXdZeeKXgbwAwps63UCAk8xOJgIK1K9vJI+U3/QNScMJZN6QY\ntfLbBRoGIrHF8vb4J3npKO4kiE4yfOFR04NcZmfax1jEmS4mCDQp/D99eSMS\nRmN4LzaO6QQY9ttSEg2BN8UnosRbtp9z3C4v8b+Xjmc7TGnzZM3yPyj16oTI\nXiw8FDrl+00ENHpfRZVq5hA6UuCbPgjOHRxUT3FCg3RY/iVFQcbSfOcEkhcf\n+Ws+\r\n=n9N1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/YV264sWo0wWwvv+ixD77k5X4BAf/qmiKBPSgItFPrQIgMJtlDejE/Fk9/1iONzfA/xx3CIwR/j8Udw7wBt758Uc="}],"size":8942,"noattachment":false,"key":"/blueimp-md5/-/blueimp-md5-2.17.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.17.0_1595731990425_0.05099604403407065"},"_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":1595731990722,"_cnpm_publish_time":1595731990722,"dist-tags":{"latest":"2.19.0"}}