{"name":"js-md5","version":"0.9.2","description":"A simple MD5 hash function for JavaScript supports UTF-8 encoding.","main":"src/md5.js","module":"build/md5.mjs","exports":{".":{"types":"./index.d.ts","node":{"import":"./build/md5.node.mjs","require":"./src/md5.js"},"import":"./build/md5.mjs","require":"./src/md5.js","default":"./src/md5.js"},"./src/md5.js":"./src/md5.js","./build/md5.js":"./build/md5.js","./build/md5.min.js":"./build/md5.min.js","./build/md5.mjs":"./build/md5.mjs","./build/md5.min.mjs":"./build/md5.min.mjs","./build/md5.node.mjs":"./build/md5.node.mjs","./build/md5.modern.js":"./build/md5.modern.js","./build/md5.modern.min.js":"./build/md5.modern.min.js","./build/md5.modern.mjs":"./build/md5.modern.mjs","./build/md5.modern.min.mjs":"./build/md5.modern.min.mjs","./build/md5.modern.node.mjs":"./build/md5.modern.node.mjs","./build/md5-lite.js":"./build/md5-lite.js","./build/md5-lite.min.js":"./build/md5-lite.min.js","./build/md5-lite.mjs":"./build/md5-lite.mjs","./build/md5-lite.min.mjs":"./build/md5-lite.min.mjs","./build/md5-lite.node.mjs":"./build/md5-lite.node.mjs","./package.json":"./package.json"},"types":"./index.d.ts","devDependencies":{"@rollup/plugin-commonjs":"^29.0.3","@rollup/plugin-terser":"^1.0.0","expect.js":"~0.3.1","jsdoc":"~4.0.2","mocha":"^11.7.6","nyc":"^18.0.0","requirejs":"^2.1.22","rollup":"^4.43.0","tiny-worker":"^2.3.0"},"scripts":{"test":"nyc mocha tests/node-test.js && node tests/build-test.js && node tests/esm-test.mjs","report":"nyc --reporter=html --reporter=text mocha tests/node-test.js","coverage":"nyc report --reporter=text-lcov > coverage.lcov","doc":"rm -rf doc && jsdoc -c jsdoc.json src README.md -d doc","build":"rollup -c && npm run doc"},"repository":{"type":"git","url":"git+https://github.com/emn178/js-md5.git"},"keywords":["md5","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"Chen, Yi-Cyuan","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md5","bugs":{"url":"https://github.com/emn178/js-md5/issues"},"nyc":{"exclude":["tests"]},"browser":{"crypto":false,"buffer":false},"gitHead":"ee1c332b607ae5cf68d8950f5a82a6c65d9f4ac4","_id":"js-md5@0.9.2","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-QK62elp/ozZj7kzyCG5yaeK+uWeqxPlg3w3znYDBvwyqzJs7nh5bgTAAH9KltLni2LT7qx/E1EgSVwfiOSRe0Q==","shasum":"ad90f714450f3f94fdc8fc96a9997a0207b0d504","tarball":"http://registry-npm.ywwl.com/js-md5/download/js-md5-0.9.2.tgz","fileCount":26,"unpackedSize":341220,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/js-md5@0.9.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFJz1mGzCovjXPQooyU0GOYjdcIrJt2DxfomrZxd1DqOAiEAjIuLjP6q+cvkNlLlrbySBhhYWAPNgEUVE6kqKTqvbpw="}],"size":46267,"noattachment":false,"key":"/js-md5/-/js-md5-0.9.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bcefbb5d-79d2-4ef2-8c0f-c33c3c6a6448"}},"directories":{},"maintainers":[{"name":"emn178","email":"emn178@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/js-md5_0.9.2_1784530237886_0.8883340110200864"},"_hasShrinkwrap":false,"readme":"# js-md5\n[![CI](https://github.com/emn178/js-md5/actions/workflows/ci.yml/badge.svg)](https://github.com/emn178/js-md5/actions/workflows/ci.yml)\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- [Uncompressed build](https://raw.github.com/emn178/js-md5/master/build/md5.js)\n- [Modern](https://raw.github.com/emn178/js-md5/master/build/md5.modern.min.js)\n- [Modern uncompressed](https://raw.github.com/emn178/js-md5/master/build/md5.modern.js)\n- [Lite](https://raw.github.com/emn178/js-md5/master/build/md5-lite.min.js)\n- [Lite uncompressed](https://raw.github.com/emn178/js-md5/master/build/md5-lite.js)\n- [Uncompress](https://raw.github.com/emn178/js-md5/master/src/md5.js)\n\n### Builds\n\n| Build | Legacy fallbacks | Node acceleration | HMAC | Base64 | Deprecated `buffer` |\n| --- | --- | --- | --- | --- | --- |\n| `md5.js` / `md5.min.js` | Yes | Yes | Yes | Yes | Yes |\n| `md5.modern.js` / `md5.modern.min.js` | No | Yes | Yes | Yes | Yes |\n| `md5-lite.js` / `md5-lite.min.js` | No | No | No | No | No |\n\nThe modern and lite builds require `Array.isArray`, `ArrayBuffer`, typed arrays,\nand `ArrayBuffer.isView`. The lite build keeps the one-shot and streaming MD5\nAPIs, including `hex`, `array`, `digest`, and `arrayBuffer` output.\n\n## Benchmark\n- [Benchmark (measurethat.net) - Short String](https://measurethat.net/Benchmarks/Show/29171/0/md5-performance-comparison-v2)\n- [Benchmark (measurethat.net) - Long String](https://measurethat.net/Benchmarks/Show/29172/0/md5-performance-comparison-long-text-v2)\n- [Benchmark (jsperf.app) - Long String](https://jsperf.app/jonuhi/6)\n- [Benchmark (measurethat.net) - Very Long String](https://measurethat.net/Benchmarks/Show/29173/0/md5-performance-comparison-very-long-text)\n- [Benchmark (jsperf.app) - Very Long String](https://jsperf.app/jonuhi/8)\n- [Async Benchmark (measurethat.net)](https://measurethat.net/Benchmarks/Show/29176/0/md5-performance-comparison-very-long-text-v6)\n- [Async Benchmark (jsperf.app)](https://jsperf.app/jonuhi/9)\n\n* js-md5 is the fastest synchronous MD5 library, but slower than Hash-WASM \n\n- [File Benchmark - Issue #19](https://github.com/emn178/js-md5/issues/19)\n- [File Benchmark - Issue #42](https://github.com/emn178/js-md5/issues/42)\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.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":1784530238012,"_cnpm_publish_time":1784530238012,"dist-tags":{"latest":"0.11.0"}}