{"_id":"js-md4","_rev":"2995071","name":"js-md4","description":"A simple MD4 hash function for JavaScript supports UTF-8 encoding.","dist-tags":{"latest":"0.3.2"},"maintainers":[{"name":"emn178","email":""}],"time":{"modified":"2023-08-28T09:20:18.000Z","created":"2015-03-01T06:28:23.682Z","0.3.2":"2017-01-24T07:21:38.406Z","0.3.0":"2015-12-28T04:04:05.505Z","0.2.0":"2015-12-08T13:07:10.837Z","0.1.1":"2015-03-01T06:28:23.682Z"},"users":{},"author":{"name":"Chen, Yi-Cyuan","email":"emn178@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/emn178/js-md4.git"},"versions":{"0.3.2":{"name":"js-md4","version":"0.3.2","description":"A simple MD4 hash function for JavaScript supports UTF-8 encoding.","main":"src/md4.js","devDependencies":{"expect.js":"~0.3.1","jscoverage":"~0.5.9","jsdoc":"^3.4.0","mocha":"~2.3.4","uglifyjs":"~2.4.10"},"scripts":{"test":"mocha tests/node-test.js -r jscoverage","report":"mocha tests/node-test.js -r jscoverage --covout=html","coveralls":"mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls","doc":"rm -rf doc;jsdoc src README.md -d doc","compress":"uglifyjs src/md4.js --compress --mangle --comments --output build/md4.min.js","build":"npm run-script compress;npm run-script doc"},"repository":{"type":"git","url":"git+https://github.com/emn178/js-md4.git"},"keywords":["md4","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"Chen, Yi-Cyuan","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md4","bugs":{"url":"https://github.com/emn178/js-md4/issues"},"gitHead":"309beb285b8e41b158b39c6a645191193ebfb3f2","_id":"js-md4@0.3.2","_shasum":"cd3b3dc045b0c404556c81ddb5756c23e59d7cf5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"emn178","email":"emn178@gmail.com"},"dist":{"shasum":"cd3b3dc045b0c404556c81ddb5756c23e59d7cf5","size":431472,"noattachment":false,"key":"/js-md4/-/js-md4-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-md4/download/js-md4-0.3.2.tgz"},"maintainers":[{"name":"emn178","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/js-md4-0.3.2.tgz_1485242496300_0.020784354768693447"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T12:41:35.693Z","publish_time":1485242498406,"_cnpm_publish_time":1485242498406},"0.3.0":{"name":"js-md4","version":"0.3.0","description":"A simple MD4 hash function for JavaScript supports UTF-8 encoding.","main":"src/md4.js","devDependencies":{"expect.js":"~0.3.1","jscoverage":"~0.5.9","jsdoc":"^3.4.0","mocha":"~2.3.4","uglifyjs":"~2.4.10"},"scripts":{"test":"mocha tests/node-test.js -r jscoverage","report":"mocha tests/node-test.js -r jscoverage --covout=html","coveralls":"mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls","doc":"rm -rf doc;jsdoc src README.md -d doc","compress":"uglifyjs src/md4.js --compress --mangle --comments --output build/md4.min.js","build":"npm run-script compress;npm run-script doc"},"repository":{"type":"git","url":"git+https://github.com/emn178/js-md4.git"},"keywords":["md4","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"emn178","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md4","bugs":{"url":"https://github.com/emn178/js-md4/issues"},"gitHead":"58ea630f45f325eb8edbe001578842e0d9491880","_id":"js-md4@0.3.0","_shasum":"e71fb757e869997d974170fa66ef2a0019315e84","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"emn178","email":"emn178@gmail.com"},"dist":{"shasum":"e71fb757e869997d974170fa66ef2a0019315e84","size":430854,"noattachment":false,"key":"/js-md4/-/js-md4-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-md4/download/js-md4-0.3.0.tgz"},"maintainers":[{"name":"emn178","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T12:41:33.992Z","publish_time":1451275445505,"_cnpm_publish_time":1451275445505},"0.2.0":{"name":"js-md4","version":"0.2.0","description":"A simple MD4 hash function for JavaScript supports UTF-8 encoding.","main":"src/md4.js","devDependencies":{"expect.js":"~0.3.1","jscoverage":"~0.5.9","mocha":"~2.3.4","uglifyjs":"~2.4.10"},"scripts":{"test":"mocha tests/node-test.js -r jscoverage","report":"mocha tests/node-test.js -r jscoverage --covout=html","coveralls":"mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls","build":"uglifyjs src/md4.js --compress --mangle --comments --output build/md4.min.js"},"repository":{"type":"git","url":"https://github.com/emn178/js-md4.git"},"keywords":["md4","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"emn178","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md4","bugs":{"url":"https://github.com/emn178/js-md4/issues"},"gitHead":"9a8df5e5e40ced075046aa7fc8081d4b00b71f4c","_id":"js-md4@0.2.0","_shasum":"8ff18e4f60660b232f9339e25cf8cb491eee1a0c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"emn178","email":"emn178@gmail.com"},"maintainers":[{"name":"emn178","email":""}],"dist":{"shasum":"8ff18e4f60660b232f9339e25cf8cb491eee1a0c","size":10803,"noattachment":false,"key":"/js-md4/-/js-md4-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-md4/download/js-md4-0.2.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T12:41:31.652Z","publish_time":1449580030837,"_cnpm_publish_time":1449580030837},"0.1.1":{"name":"js-md4","version":"0.1.1","description":"A simple MD4 hash function for JavaScript supports UTF-8 encoding.","main":"src/md4.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-md4.git"},"keywords":["md4","hash","encryption","cryptography","HMAC"],"license":"MIT","author":{"name":"emn178","email":"emn178@gmail.com"},"homepage":"https://github.com/emn178/js-md4","bugs":{"url":"https://github.com/emn178/js-md4/issues"},"gitHead":"8c5a5a99e4291ad8d90923211a6879c16703faa1","_id":"js-md4@0.1.1","_shasum":"9126c4fae711c2604c64f75ba5d2f76ff2197998","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"emn178","email":"emn178@gmail.com"},"maintainers":[{"name":"emn178","email":""}],"dist":{"shasum":"9126c4fae711c2604c64f75ba5d2f76ff2197998","size":10105,"noattachment":false,"key":"/js-md4/-/js-md4-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-md4/download/js-md4-0.1.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T12:41:30.765Z","publish_time":1425191303682,"_cnpm_publish_time":1425191303682}},"readme":"# js-md4\r\n[![Build Status](https://travis-ci.org/emn178/js-md4.svg?branch=master)](https://travis-ci.org/emn178/js-md4)\r\n[![Coverage Status](https://coveralls.io/repos/emn178/js-md4/badge.svg?branch=master)](https://coveralls.io/r/emn178/js-md4?branch=master)  \r\n[![NPM](https://nodei.co/npm/js-md4.png?stars&downloads)](https://nodei.co/npm/js-md4/)  \r\nA simple MD4 hash function for JavaScript supports UTF-8 encoding.\r\n\r\n## Demo\r\n[MD4 Online](http://emn178.github.io/online-tools/md4.html)  \r\n\r\n## Download\r\n[Compress](https://raw.github.com/emn178/js-md4/master/build/md4.min.js)  \r\n[Uncompress](https://raw.github.com/emn178/js-md4/master/src/md4.js)\r\n\r\n## Installation\r\nYou can also install js-md4 by using Bower.\r\n\r\n    bower install js-md4\r\n\r\nFor node.js, you can use this command to install:\r\n\r\n    npm install js-md4\r\n\r\n## Notice\r\n`buffer` method is deprecated. This maybe confuse with Buffer in node.js. Please use `arrayBuffer` instead.\r\n\r\n## Usage\r\nYou could use like this:\r\n```JavaScript\r\nmd4('Message to hash');\r\n\r\nvar hash = md4.create();\r\nhash.update('Message to hash');\r\nhash.hex();\r\n\r\nvar hash2 = md4.update('Message to hash');\r\nhash2.update('Message2 to hash');\r\nhash2.array();\r\n```\r\nIf you use node.js, you should require the module first:\r\n```JavaScript\r\nvar md4 = require('js-md4');\r\n```\r\nIt supports AMD:\r\n```JavaScript\r\nrequire(['your/path/md4.js'], function (md4) {\r\n// ...\r\n});\r\n```\r\n[See document](https://emn178.github.com/js-md4/doc/)\r\n\r\n## Example\r\n```JavaScript\r\nmd4(''); // 31d6cfe0d16ae931b73c59d7e0c089c0\r\nmd4('The quick brown fox jumps over the lazy dog'); // 1bee69a46ba811185c194762abaeae90\r\nmd4('The quick brown fox jumps over the lazy dog.'); // 2812c6c7136898c51f6f6739ad08750e\r\n\r\n// It also supports UTF-8 encoding\r\nmd4('中文'); // 223088bf7bd45a16436b15360c5fc5a0\r\n\r\n// It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`\r\nmd4([]); // 31d6cfe0d16ae931b73c59d7e0c089c0\r\nmd4(new Uint8Array([])); // 31d6cfe0d16ae931b73c59d7e0c089c0\r\n\r\n// Different output\r\nmd4(''); // 31d6cfe0d16ae931b73c59d7e0c089c0\r\nmd4.hex(''); // 31d6cfe0d16ae931b73c59d7e0c089c0\r\nmd4.array(''); // [49, 214, 207, 224, 209, 106, 233, 49, 183, 60, 89, 215, 224, 192, 137, 192]\r\nmd4.digest(''); // [49, 214, 207, 224, 209, 106, 233, 49, 183, 60, 89, 215, 224, 192, 137, 192]\r\nmd4.arrayBuffer(''); // ArrayBuffer\r\n```\r\n\r\n## License\r\nThe project is released under the [MIT license](http://www.opensource.org/licenses/MIT).\r\n\r\n## Contact\r\nThe project's website is located at https://github.com/emn178/js-md4  \r\nAuthor: Chen, Yi-Cyuan (emn178@gmail.com)\r\n","_attachments":{},"homepage":"https://github.com/emn178/js-md4","bugs":{"url":"https://github.com/emn178/js-md4/issues"},"license":"MIT"}