{"name":"js-md5","version":"0.2.2","description":"A simple MD5 hash function for JavaScript supports UTF-8 encoding.","main":"src/md5.js","devDependencies":{"expect.js":"~0.3.1","jscoverage":"~0.5.9"},"scripts":{"test":"mocha tests/node-test.js -r jscoverage","coveralls":"mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls"},"repository":{"type":"git","url":"https://github.com/emn178/js-md5.git"},"keywords":["md5","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"emn178","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md5","bugs":{"url":"https://github.com/emn178/js-md5/issues"},"gitHead":"e36b8d13f7d96ec593dd588afa31fd96fdb8c005","_id":"js-md5@0.2.2","_shasum":"af0f1aec20ef71eacdc266775b0ee7891682fc0c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"emn178","email":"emn178@gmail.com"},"maintainers":[{"name":"emn178","email":"emn178@gmail.com"}],"dist":{"shasum":"af0f1aec20ef71eacdc266775b0ee7891682fc0c","tarball":"http://registry-npm.ywwl.com/js-md5/download/js-md5-0.2.2.tgz","integrity":"sha512-o35qp2xhk9iuiAKS4blKNyOKerQ71eAVwLylcyPQDnC2wwtNeTU8gEh35a8bOyMSBNtBdP+y0QJPUDvvqvdUOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpUW8k/jRETsZZ+A0xKtGF8cfQIZm9UMr3UBWmW4OlPAiEAuo02yQUkPeBTDQkXgIYn+fTaoDwlJkKj7EslZa4jYVw="}],"size":9858,"noattachment":false,"key":"/js-md5/-/js-md5-0.2.2.tgz"},"directories":{},"readme":"# js-md5\n[![Build Status](https://travis-ci.org/emn178/js-md5.svg?branch=master)](https://travis-ci.org/emn178/js-md5)\n[![Coverage Status](https://coveralls.io/repos/emn178/js-md5/badge.svg?branch=master)](https://coveralls.io/r/emn178/js-md5?branch=master)  \n[![NPM](https://nodei.co/npm/js-md5.png?stars&downloads)](https://nodei.co/npm/js-md5/)\n\nA simple and fast MD5 hash function for JavaScript supports UTF-8 encoding.\n\n## Demo\n[MD5 Online](http://emn178.github.io/online-tools/md5.html)  \n[MD5 File Checksum Online](http://emn178.github.io/online-tools/md5_checksum.html)\n\n## Download\n[Compress](https://raw.github.com/emn178/js-md5/master/build/md5.min.js)  \n[Uncompress](https://raw.github.com/emn178/js-md5/master/src/md5.js)\n\n## Benchmark\n[jsPerf Benchmark](https://jsperf.app/jonuhi)  \n[File Benchmark](https://github.com/emn178/js-md5/issues/19)\n\n## Installation\nYou can also install js-md5 by using Bower.\n\n    bower install md5\n\nFor node.js, you can use this command to install:\n\n    npm install js-md5\n\n## Notice\n`buffer` method is deprecated. This maybe confuse with Buffer in node.js. Please use `arrayBuffer` instead.\n\n## Usage\nYou could use like this:\n```JavaScript\nmd5('Message to hash');\nvar hash = md5.create();\nhash.update('Message to hash');\nhash.hex();\n\n// HMAC\nmd5.hmac('key', 'Message to hash');\n\nvar hash = md5.hmac.create('key');\nhash.update('Message to hash');\nhash.hex();\n```\n\n### Node.js\nIf you use node.js, you should require the module first:\n```JavaScript\nvar md5 = require('js-md5');\n```\n\n### TypeScript\nIf you use TypeScript, you can import like this:\n```TypeScript\nimport { md5 } from 'js-md5';\n```\n\n## RequireJS\nIt supports AMD:\n```JavaScript\nrequire(['your/path/md5.js'], function(md5) {\n// ...\n});\n```\n[See document](https://emn178.github.com/js-md5/doc/)\n\n## Example\n```JavaScript\nmd5(''); // d41d8cd98f00b204e9800998ecf8427e\nmd5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6\nmd5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0\n\n// It also supports UTF-8 encoding\nmd5('中文'); // a7bac2239fcdcb3a067903d8077c4a07\n\n// It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`\nmd5([]); // d41d8cd98f00b204e9800998ecf8427e\nmd5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e\n\n// Different output\nmd5(''); // d41d8cd98f00b204e9800998ecf8427e\nmd5.hex(''); // d41d8cd98f00b204e9800998ecf8427e\nmd5.array(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]\nmd5.digest(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]\nmd5.arrayBuffer(''); // ArrayBuffer\nmd5.buffer(''); // ArrayBuffer, deprecated, This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.\nmd5.base64(''); // 1B2M2Y8AsgTpgAmY7PhCfg==\n\n// HMAC\nmd5.hmac.hex('key', 'Message to hash');\nmd5.hmac.array('key', 'Message to hash');\n// ...\n```\n\n## License\nThe project is released under the [MIT license](https://opensource.org/license/mit/).\n\n## Contact\nThe project's website is located at https://github.com/emn178/js-md5  \nAuthor: Chen, Yi-Cyuan (emn178@gmail.com)\n","publish_time":1422775102199,"_cnpm_publish_time":1422775102199,"dist-tags":{"latest":"0.11.0"}}