{"_id":"nano-md5","_rev":"9-1ee72834e2fa96644ef21917b9a0e9bf","name":"nano-md5","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"nano-md5","version":"1.0.0","description":"MD5 hash functions. md5crypt also.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"8f6e9deb4ed42bd095265fcf15e03229f9911d5f","_id":"nano-md5@1.0.0","_shasum":"b3032396d5bf03715afc09488067ce1539915fe2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"holixus","email":"true@holix.ru"},"dist":{"shasum":"b3032396d5bf03715afc09488067ce1539915fe2","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.0.tgz","integrity":"sha512-xTmjApNa38uUsXJJU6vYiX1FQdoFcjGsA1TM73AeK+F3Mn73y5UCtxiZNuUFELDZbleMsdPV3APQgeL5m7YU1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAupdCwztVJUAiIJCGpr2rb/Ev29EjOVWxEc11KXOMwzAiB1NBa/ESo/Xox2hHvu4rFJZRDVn06ZbPnux7r9RMPgDg=="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nano-md5-1.0.0.tgz_1475165674279_0.5088170773815364"},"directories":{}},"1.0.1":{"name":"nano-md5","version":"1.0.1","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"f2849c422a01e48f0726cc2d70ea2feabafda2e0","_id":"nano-md5@1.0.1","_shasum":"f8614fba21a7b232645971cf84de999664c315ec","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"holixus","email":"true@holix.ru"},"dist":{"shasum":"f8614fba21a7b232645971cf84de999664c315ec","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.1.tgz","integrity":"sha512-irMsTEuu8IAd/p+ooZvrhRSkTx0bLBuN5qCRVJK5ia80KqGyZCfemEyHR8Cu4p/R0bR4WIIoCmBO9rfDVouQbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDz+FYwY7lj47wMwL83a8kDuks3CuIUCQAljsT38rXc/AiEAlGocKeWawGS6xhtG3bVqmc8dnMGjP/3Hw8KRc+jTtDc="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nano-md5-1.0.1.tgz_1475166289853_0.6247584777884185"},"directories":{}},"1.0.2":{"name":"nano-md5","version":"1.0.2","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"a8dea8a6a5f5271547bb2b91c0d864cc4af28443","_id":"nano-md5@1.0.2","_shasum":"e47e472185618ab43a45454cb826785deecf71d9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"holixus","email":"true@holix.ru"},"dist":{"shasum":"e47e472185618ab43a45454cb826785deecf71d9","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.2.tgz","integrity":"sha512-LYMnpX/mcQSYAHnP+2ATKLr3H7ckf1Lja3MU+eArcfwaUV6Z+JWRyW6LPlRqknpM+YEHpmCxo9+C71pbXNrvhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHj/wgiaE+GWWPer3pem7WaCtPD8lziqEJwP7sayE+lYAiEA6mXC5VeIs066GWV3STkq4cp0X7D/2YFzIxED2qoI77Y="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nano-md5-1.0.2.tgz_1476092038043_0.02917712088674307"},"directories":{}},"1.0.3":{"name":"nano-md5","version":"1.0.3","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"a17ce11d33c6e25af1aae36dc20267e5278631bd","_id":"nano-md5@1.0.3","_shasum":"ff517583e20d83636593ac0eb81bdaa540f9dae1","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"holixus","email":"true@holix.ru"},"dist":{"shasum":"ff517583e20d83636593ac0eb81bdaa540f9dae1","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.3.tgz","integrity":"sha512-kmu4zOQVc+u0iPgPY/kapYPh/f7ueoyRKQo5WbvnJaPozRPtPpts8+G/4/gccSAJinRG7voufFSFfYIo87x4fQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWniowdAVNPEpm/M/G8z3MDGskY1R9gPnVh7Q/+Qhe/gIgK+Yc0JgCOaP/SP0bW1CRnpRWqYmXi+ff/d2CnSFseis="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nano-md5-1.0.3.tgz_1477661425107_0.7436718021053821"},"directories":{}},"1.0.4":{"name":"nano-md5","version":"1.0.4","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"e44bcc87a451872e66e4773b20aae990513abf91","_id":"nano-md5@1.0.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Ri61gkGmhqwlRRulGjenaSg5KHn+zVnaRkGh3D3xhxlX4gHKJ0ZZ5qf6SpC+SQ8SVpXQEJEtkHFfRO+gs1ubjw==","shasum":"dd5ac7f8dc13fefac815bfe00cd3270b39d145f4","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.4.tgz","fileCount":5,"unpackedSize":14480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJcOACRA9TVsSAnZWagAATXsP/iKTTqB7SaPJ50XNkNyR\nz3TyvYKpDNJEkatU1EUvVNlOf4s0guIqLNy6oLqBzb4MrAXP9hq3VjZFHhj5\nDAAvs7Z+HltkueM/Ujntlu8/Y2heMApXnRdyPQrjIDbvecs7R7B36z4D+naA\n6/pSDdp1eqSPEy6RJGl9+v1ttCbocLAo/Va2xwGtzzrt/G5dUMmw70VWut++\nUDizUFWvYC221NlPg1FxgbQTMqnoGTyvVVy+NLmr6BakiUHxEaEdaLQ5AF8q\nMXXvEsBhywxYY3vtww/34g0yeAn4UFlBqoUIT7IW0FGjEqGDoqjUTVPJ00f1\nEqom2PfC5hvXMqi4CC4SicB6Vay2/m/FO5BZ4l3afkNzDtDid29PlduQxRWp\nvLxHQVfJhtmgc49FuVxK7Z2TuYDNay5LZ7zrCV7toT6JOCh1kEWNCvy01Xd0\nR6gjJb0GT+5p0HQNVsYMpRAmoEz6oknIR+xUoycLaupEvzbZYSGw4euXfBht\nV4+adPHkfg1Z628NKZXlODVQ2B3qhWpk7U77UXhXJTgyK9UbFqW8ADwmp9IN\nEnswZVEYlVt0OgKK/UgujEQqC42o+w2vNes5s4KhOMxt162bzpr7GJEra+Qe\nLH/n//w4aiWclTAdzWtP1rqqrslmNySERGAxNGmwnMgyZ27IMfvx+XCl4umm\nh2rf\r\n=LWLT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7sQNHYv/HqhTWDa9/Dn/95UH2THgxHw6f1hl4nvL0pAiEA8XX+1t3IsUZUlUsccQSiNlbT/eqnYQtZ7Tq6HpjIJog="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmUser":{"name":"holixus","email":"true@holix.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nano-md5_1.0.4_1562755967644_0.3145770705171014"},"_hasShrinkwrap":false},"1.0.5":{"name":"nano-md5","version":"1.0.5","description":"md5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.","main":"md5.js","scripts":{"test":"tape test/*.js","test-cov":"istanbul cover node_modules/tape/bin/tape -- test/*.js","test-travis":"istanbul cover node_modules/tape/bin/tape --report lcovonly -- test/*.js"},"keywords":["md5","hash","md5crypt"],"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"license":"MIT","bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"homepage":"https://github.com/Holixus/nano-md5#readme","devDependencies":{"tape":"4","istanbul":"0"},"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"gitHead":"6c6fa82f3250b81e39e717a29fca3fe6d882b946","_id":"nano-md5@1.0.5","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-1VAOX0EiuwAdCMGpnglxp9r6ylm+gXwQi+UPAnc/Oj1tLLJ8D1I8rLZeiO4MWsUAqH8tuBAHweT1LYSrDfJlPg==","shasum":"99d155e95ccaadc4096a309292a0df1b5190514e","tarball":"https://registry.npmjs.org/nano-md5/-/nano-md5-1.0.5.tgz","fileCount":5,"unpackedSize":14480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJcX9CRA9TVsSAnZWagAA1gUP/1ffVW2LG43SqN8Po5/6\nFtWmjWgAoCmRuq1jq1d8LYXC9SPdztoMCqYjZSS9rIztpbaPffSNPoQFg2WZ\nKQEIFi3GfnOSfQ81/cDgHPv3LcFPQpiqivjPYPDTtktR3wnTdtalJT1fKS4j\n7/GXYn7PZcRbtsNAlpKuvnkYOmH7Sv8XsVepmKWWXYNlGdd1E1/NXLYmg+KY\nRYtFCeApHZcVZNociYmrzePaPOn4QK2y983qW1dlfUo/gdaGSr8wn66mOx+t\nNDJvW2/UFc7Dezh0hyzIADvJmpssn+MoPdbA143UoPLLKCtc05tTvaA4SFwd\n3B+HJeRzyDO/JwxgkUw7qnoslpEd4xeymHmUa9VlEuhTr03UboRQQC6G1grV\ntZ+/gHQnaL/NpkTFOpzoMscRhzPxRZxnOOYUa4I/wwQ27wtlKmg4VCSu+JLW\nAZq5npufTBSuPUc13XQnDmeZP8F6/oUVf3B6mDAq0GRvNeDooVgEpNEroonN\nAFLhZY7pLTN1Pfzno5o8mVGdQdHkds7N7rTAJ1W1CRQpuEnACc7zeWADcE+l\nwkXk0//UA/nbmBtv3EwtDxTggg1o/cz9hoP+yUMyfQx61eNnnNxbn9ewlqIB\nEw0bTw4/vQG8f20vAiD6tdBKXnWLH0RCE07q2Y1TeKpBaXAbFlyAE7zfdhj6\nfwh2\r\n=VHQK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZdIE7PnBAGpeDzwVBcEMbGJP+lPFtZJ/GFp9PB1r6dAiBGK62rWlEz6b6H571FFfcAXrxuEy7kRCE0QLtw+C1Akg=="}]},"maintainers":[{"name":"holixus","email":"true@holix.ru"}],"_npmUser":{"name":"holixus","email":"true@holix.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nano-md5_1.0.5_1562756604297_0.6864699313581613"},"_hasShrinkwrap":false}},"readme":"[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n# nano-md5\nmd5/md5crypt functions. UTF8 compatible. Small. Fast. 100% tests coverage. No dependencies.\n\n## Example\n\n```js\n> var md5 = require('nano-md5');\n> md5('hello');\n'5d41402abc4b2a76b9719d911017c592'\n> md5.fromBytes('hello').toHex()\n'5d41402abc4b2a76b9719d911017c592'\n> md5.fromUtf8('hello').toHex()\n'5d41402abc4b2a76b9719d911017c592'\n```\n\n## API\n\n### md5(utf8_string)\n\n* utf8_string `String`\n\nReturns hexadecimal value of utf8_string MD5 hash. The function is a shortcut for `md5.fromUtf8(utf8_string).toHex()` call.\n\n```js\n> var md5 = require('nano-md5');\n> md5('hello');\n'5d41402abc4b2a76b9719d911017c592'\n```\n\n\n### md5.fromBytes(bytes_string)\n\n* bytes_string `String` -- supports only 8-bits characters\n\nReturns binary String object of MD5 hash containings of `toHex()` method for converting binary value to hexadecimal string value.\n\n```js\n> var md5 = require('nano-md5');\n> md5.fromBytes('hello');\n{ [String: ']A@*¼K*v¹q��\\u0010\\u0017Å�'] toHex: [Function] }\n> md5.fromBytes('hello').toHex()\n'5d41402abc4b2a76b9719d911017c592'\n```\n\n### md5.fromUtf8(utf8_string)\n\n* utf8_string `String`\n\nReturns binary String object of MD5 hash containings of `toHex()` method for converting binary value to hexadecimal string value.\n\n```js\n> var md5 = require('nano-md5');\n> md5.fromBytes('русский');\n{ [String: '4�·�® \\u0000>\\u001eU\\u001bÏM¡a'] toHex: [Function] }\n> md5.fromBytes('русский').toHex()\n'3495b78aaea0003e1e551bcf4da18861'\n```\n\n### md5.crypt(password, setting)\n\n* password `String`\n* setting `String` - salt or '$1$'+salt; can be closed with '$' symbol\n\nThe function is analogue of `md5crypt` unix libc function. Very useful for passwords crypting and checking.\n\nThe `setting` argument isn`t necessary. If it skipped a salt value will generated automatically.\n\n```js\n> var md5 = require('nano-md5');\n> md5.crypt('hello')\n'$1$DgPzWoiS$bMN29fSiiniXY6s.4ShyE1'\n> md5.crypt('hello')\n'$1$nFQVmGdu$m0QpoNNUJ6Ij8ZWh0wavS0'\n> md5.crypt('hello')\n'$1$FmEgm6OI$rvKvF85/aj2n8/64VEytt/'\n> md5.crypt('hello', '01234567')\n'$1$01234567$8imesxsCtZWLDOPevHEvu.'\n> md5.crypt('hello', '01234567')\n'$1$01234567$8imesxsCtZWLDOPevHEvu.'\n> md5.crypt('hello', '$1$01234567')\n'$1$01234567$8imesxsCtZWLDOPevHEvu.'\n> md5.crypt('hello', md5.crypt('hello', '$1$01234567')) // crypted password can be used as salt source\n'$1$01234567$8imesxsCtZWLDOPevHEvu.'\n```\n\n\n[bithound-image]: https://www.bithound.io/github/Holixus/nano-md5/badges/score.svg\n[bithound-url]: https://www.bithound.io/github/Holixus/nano-md5\n\n[gitter-image]: https://badges.gitter.im/Holixus/nano-md5.svg\n[gitter-url]: https://gitter.im/Holixus/nano-md5\n\n[npm-image]: https://badge.fury.io/js/nano-md5.svg\n[npm-url]: https://badge.fury.io/js/nano-md5\n\n[github-tag]: http://img.shields.io/github/tag/Holixus/nano-md5.svg\n[github-url]: https://github.com/Holixus/nano-md5/tags\n\n[travis-image]: https://travis-ci.org/Holixus/nano-md5.svg?branch=master\n[travis-url]: https://travis-ci.org/Holixus/nano-md5\n\n[coveralls-image]: https://coveralls.io/repos/github/Holixus/nano-md5/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/Holixus/nano-md5?branch=master\n\n[david-image]: https://david-dm.org/Holixus/nano-md5.svg\n[david-url]: https://david-dm.org/Holixus/nano-md5\n\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: LICENSE\n\n[downloads-image]: http://img.shields.io/npm/dt/nano-md5.svg\n[downloads-url]: https://npmjs.org/package/nano-md5\n","maintainers":[{"name":"holixus","email":"true@holix.ru"}],"time":{"modified":"2022-06-20T19:57:06.344Z","created":"2016-09-29T16:14:35.183Z","1.0.0":"2016-09-29T16:14:35.183Z","1.0.1":"2016-09-29T16:24:51.684Z","1.0.2":"2016-10-10T09:33:59.561Z","1.0.3":"2016-10-28T13:30:27.990Z","1.0.4":"2019-07-10T10:52:47.773Z","1.0.5":"2019-07-10T11:03:24.496Z"},"homepage":"https://github.com/Holixus/nano-md5#readme","keywords":["md5","hash","md5crypt"],"repository":{"type":"git","url":"git+https://github.com/Holixus/nano-md5.git"},"author":{"name":"Vladimir Antonov","email":"me@holix.ru"},"bugs":{"url":"https://github.com/Holixus/nano-md5/issues"},"license":"MIT","readmeFilename":"README.md"}