{"_id":"tiny-hashes","_rev":"2-4402e87350d29aec7009062ff1617dc8","name":"tiny-hashes","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"tiny-hashes","version":"1.0.0","description":"Super-tiny implementations of some basic hash functions","main":"dist/index.js","module":"dist/index.mjs","source":"index.js","scripts":{"build":"npm run build:md5 && npm run build:sha1 && npm run build:sha256 && npm run build:main","build:md5":"microbundle build --cwd md5","build:sha1":"microbundle build --cwd sha1","build:sha256":"microbundle build --cwd sha256","build:main":"microbundle build","pretest":"npm run build","test":"eslint . && node test.js"},"eslintConfig":{"extends":"eslint:recommended","parserOptions":{"ecmaVersion":6,"sourceType":"module"},"rules":{"array-bracket-spacing":[2,"always"],"block-spacing":[2,"always"],"brace-style":[2,"1tbs"],"camelcase":2,"comma-spacing":[2,{"before":false,"after":true}],"comma-style":[2,"last"],"eol-last":2,"indent":[2,2],"linebreak-style":[2,"unix"],"no-console":0,"no-func-assign":0,"no-lonely-if":2,"no-mixed-spaces-and-tabs":2,"no-spaced-func":2,"no-trailing-spaces":2,"no-unneeded-ternary":2,"operator-assignment":1,"quotes":[2,"single","avoid-escape"],"semi-spacing":2,"semi":2,"keyword-spacing":[2],"space-before-function-paren":[2,{"anonymous":"never","named":"never"}],"space-in-parens":[2,"never"],"space-infix-ops":[2,{"int32Hint":true}],"space-unary-ops":[2,{"words":true,"nonwords":false}],"spaced-comment":1}},"repository":{"type":"git","url":"git+https://github.com/jbt/tiny-hashes.git"},"author":{"name":"JT","email":"jt@gosquared.com"},"license":"MIT","bugs":{"url":"https://github.com/jbt/tiny-hashes/issues"},"homepage":"https://github.com/jbt/tiny-hashes#readme","devDependencies":{"eslint":"^5.15.2","microbundle":"^0.11.0"},"gitHead":"317ef4957c891a6a9aa44e86a340c4dea8475216","_id":"tiny-hashes@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"jt","email":"jt@gosquared.com"},"dist":{"integrity":"sha512-r9gx6E0vfXTDTkjNOqqqVudXiUANM21KcmlpHtJTd47aSRIBye9d3a9Mp6wzzMSXEqhDznVyhKUVyghImbwb9Q==","shasum":"c5de03fc0d39fc9d164382daf222312455895311","tarball":"https://registry.npmjs.org/tiny-hashes/-/tiny-hashes-1.0.0.tgz","fileCount":33,"unpackedSize":62220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcj/qTCRA9TVsSAnZWagAAaIcP/iC4Ph4IbQOh1PUWDzFh\noE3VXr2AcTVb7/RmwC/jXbLbISpqcGe4U5Ptj905kKw8gSBgZDvpLMUwwBSn\nqoay5LQhWg0L56CX3+zw/W4fhYjeoknH6UIvFJ98FvV/Mi9TJTERf+e0s7Nj\n9vLKyANJaSJwOzHPDGWmntk3M/HfeKUpJd1Qw0AniFJvW8eFhpM9618W4+8N\nJrSOJVnpPDZdJi1co1JmOLoYsqIWiJkXobLMKNNfr1dLTlhdwzWZ3dlY65wU\nIXLgYfnFwomYSNdiYDpi9+IOK/4fhyHyBrgYl0iZzJGVUSIMdfLiFypNuvEG\n0tD1Qb1KWckEke1EJQurPgfsit50deO9BIGpMjv8SUIuYkjHm1PiMhjtgqdN\n6o7NZZ7sbJa3YSjS/ZhJpuQ/hpjs6lIPxZ2dQ+Yb/dK6PDgtCqTTDfeFOq5S\nN/x9mDMUQJ42aF+0WCqQeT2Wxy3xkv8V6gDWL4dt/qO19TQ6TluyAPAydP7d\n/huQguF4DYWq39wUVDJhUkOOIhrFdLV/rsKh/0eb1pFEXLPACscq6FTlPeyK\neadOsUrYoLwMGWDa+lxhdo4L47njhd4aYxiaXH8fAooHSIZdUCuzCgyjdz1Q\nR6Jldfplyue4FT9XTe8Kpz/CaBfBuHj62xWURzrjkMxldYs3KzhPZ/KQoTh8\nFQ1L\r\n=mW3W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTxhQ2Krw6oaTBBaA/1K1Gor2ESrOf0+D9UvLoKyai7AiAaquc189I7mFHoOtuYQenHE68OFjncn9WG0ynUtiRq6g=="}]},"maintainers":[{"name":"jt","email":"jt@gosquared.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-hashes_1.0.0_1552939666764_0.5150181330652086"},"_hasShrinkwrap":false},"1.0.1":{"name":"tiny-hashes","version":"1.0.1","description":"Super-tiny implementations of some basic hash functions","main":"dist/index.js","module":"dist/index.mjs","source":"index.js","scripts":{"build":"npm run build:md5 && npm run build:sha1 && npm run build:sha256 && npm run build:main","build:md5":"microbundle build --cwd md5","build:sha1":"microbundle build --cwd sha1","build:sha256":"microbundle build --cwd sha256","build:main":"microbundle build","pretest":"npm run build","test":"eslint . && node test.js"},"eslintConfig":{"extends":"eslint:recommended","parserOptions":{"ecmaVersion":6,"sourceType":"module"},"rules":{"array-bracket-spacing":[2,"always"],"block-spacing":[2,"always"],"brace-style":[2,"1tbs"],"camelcase":2,"comma-spacing":[2,{"before":false,"after":true}],"comma-style":[2,"last"],"eol-last":2,"indent":[2,2],"linebreak-style":[2,"unix"],"no-console":0,"no-func-assign":0,"no-lonely-if":2,"no-mixed-spaces-and-tabs":2,"no-spaced-func":2,"no-trailing-spaces":2,"no-unneeded-ternary":2,"operator-assignment":1,"quotes":[2,"single","avoid-escape"],"semi-spacing":2,"semi":2,"keyword-spacing":[2],"space-before-function-paren":[2,{"anonymous":"never","named":"never"}],"space-in-parens":[2,"never"],"space-infix-ops":[2,{"int32Hint":true}],"space-unary-ops":[2,{"words":true,"nonwords":false}],"spaced-comment":1}},"repository":{"type":"git","url":"git+https://github.com/jbt/tiny-hashes.git"},"author":{"name":"JT","email":"jt@gosquared.com"},"license":"MIT","bugs":{"url":"https://github.com/jbt/tiny-hashes/issues"},"homepage":"https://github.com/jbt/tiny-hashes#readme","devDependencies":{"eslint":"^5.15.2","microbundle":"^0.11.0"},"gitHead":"1e08e1bb5346825a5713a77344dd63ec374158b1","_id":"tiny-hashes@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"jt","email":"jt@gosquared.com"},"dist":{"integrity":"sha512-knIN5zj4fl7kW4EBU5sLP20DWUvi/rVouvJezV0UAym2DkQaqm365Nyc8F3QEiOvunNDMxR8UhcXd1d5g+Wg1g==","shasum":"ddbe9060312ddb4efe0a174bb3a27e1331c425a1","tarball":"https://registry.npmjs.org/tiny-hashes/-/tiny-hashes-1.0.1.tgz","fileCount":33,"unpackedSize":65102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnLJyCRA9TVsSAnZWagAAHIAQAIaFvgSevkmf+EcCElNK\na2aEl2g3r4M+CMq8RBI2j1A6yydd1vvFjdtVE/NK27hh1cXg6p9FmQ9Az91W\nsj9SVs9Q9EW8CncQgaIC138tIzdf018l004JHvKH8tFAPTFVVOQkgaQjjiST\nXbqnPROzqRFn0UgtuynUIdlkK+qmmTmJ/61UjtgMcYbiQolBMgswR6F+Rtyr\ngbpGkde4mOiAhR536Qp2LIn4r05vzP+5QDxXW8R05iICFpTNSGo+SL6aF5lE\nH44XLc55YPSxTXfdLFJgVpa0ck+BCSrCWs0Nv1gFDJEqLmJild8roncP78ev\n6dbMu4KTxVI0JpdvN/ofdwqAbmTgL0iqc/XBHiz2b11R9N0VbH9qAORQExSM\nLvtY3YXRTKanaDkZWD6jypOhIDQ736fIXleDGnYCJz7Rm3bSjsS8iMgYI5XO\nAFVV6zpMCAkfJGW/oRyyj2oVtbtHqSUyWa3HswzWdZFxN9bRFmjkq8LN3wY4\n0UkEfgXF3qh9q044NaLzVvznr4M4cN/RpHltO2SjzpHp8zeoINjnn0JOJPGG\nbQU/gIlXWHYSZMzyqjDul1xrRzQqRTuFhLur3zUUl+1D+qkRlNLNSZvrMu/d\noE+WBumM8hcQ+sFFpUcOEp8IuFB7pAHqFdE38y/Th9pWyNu030BU9cqi8/av\nQxd3\r\n=HSJX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWvJjWLwxct6+GRo5bSvgzidS6RtcvAST7JXebA8TvcAiB3xZ4ABu7ZuJPksqD8iWF05eVmpLdIsK1OxDZZwi73wA=="}]},"maintainers":[{"name":"jt","email":"jt@gosquared.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-hashes_1.0.1_1553773170180_0.6913938876713719"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-18T20:07:46.764Z","1.0.0":"2019-03-18T20:07:46.906Z","modified":"2022-05-21T21:46:26.866Z","1.0.1":"2019-03-28T11:39:30.266Z"},"maintainers":[{"name":"jt","email":"jt@gosquared.com"}],"description":"Super-tiny implementations of some basic hash functions","homepage":"https://github.com/jbt/tiny-hashes#readme","repository":{"type":"git","url":"git+https://github.com/jbt/tiny-hashes.git"},"author":{"name":"JT","email":"jt@gosquared.com"},"bugs":{"url":"https://github.com/jbt/tiny-hashes/issues"},"license":"MIT","readme":"# Tiny Hash Functions\n\nSome super-tiny implementations of common hash functions (MD5, SHA-1 and SHA-256).\n\n## Installation\n\nFrom npm:\n\n```\nnpm i tiny-hashes\n```\n\n## Usage\n\nPreferably using ES modules:\n\n```js\nimport md5 from 'tiny-hashes/md5';\nimport sha1 from 'tiny-hashes/sha1';\nimport sha256 from 'tiny-hashes/sha256';\n\nmd5('hello, world'); // \"e4d7f1b4ed2e42d15898f4b27b019da4\", hopefully\n\nsha1('hello, world'); // \"b7e23ec29af22b0b4e41da31e868d57226121c84\", hopefully\n\nsha256('hello, world'); // \"09ca7e4eaa6e8ae9c7d261167129184883644d07dfba7cbfbc4c8a2e08360d5b\", hopefully\n```\n\n### Other ways of importing\n\nThe following styles should also all work, but may be less-friendly to tree-shaking:\n\n```js\nconst md5 = require('tiny-hashes/md5');\nconst sha1 = require('tiny-hashes/sha1');\nconst sha256 = require('tiny-hashes/sha256');\n\nimport { md5, sha1, sha256 } from 'tiny-hashes';\n\nconst { md5, sha1, sha256 } = require('tiny-hashes');\n```\n\n## When should you use this?\n\nPlease don't use this if you absolutely rely on it being correct. There are more solid solutions out there.\n\nPlease also don't use this server-side in Node.js - the `crypto` build-in module exists for a reason.\n\nBasically only use this if you want a super-duper-tiny hash function in the browser that you can be about 99% sure is correct and should always be self-consistent.\n","readmeFilename":"README.md"}