{"_id":"@cryptography/sha1","_rev":"2-d34761a3d95135b06b9f534f36871974","name":"@cryptography/sha1","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@cryptography/sha1","description":"https://github.com/js-cryptography/sha1","version":"0.1.0","author":{"name":"Konstantin Darutkin"},"scripts":{"prepare":"npm run build","lint":"eslint --ext .ts ./src","build":"rm -rf dist/* && tsc --declaration && npm run minify","analyze":"npm run build -- --analyze","test":"jest --coverage","minify":"uglifyjs --compress --mangle --output ./dist/index.min.js -- ./dist/index.js"},"publishConfig":{"access":"public"},"dependencies":{},"devDependencies":{"@types/jest":"^24.0.23","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","codecov":"^3.6.1","eslint":"^6.7.2","eslint-config-airbnb-typescript":"^6.0.0","eslint-import-resolver-webpack":"^0.11.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^23.0.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.17.0","eslit":"^6.0.0","jest":"^24.9.0","ts-jest":"^24.2.0","ts-loader":"^6.2.1","typescript":"^3.7.2","uglify-js":"^3.7.1","webpack":"^4.40.2","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^3.3.9"},"main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/js-cryptography/sha1.git"},"lint-staged":{"*.{ts}":["eslint"]},"keywords":["sha1","javascript","crypto"],"bugs":{"url":"https://github.com/js-cryptography/sha1/issues"},"homepage":"https://github.com/js-cryptography/sha1#readme","directories":{"test":"tests"},"license":"GPL-3.0-or-later","gitHead":"928538849f4b17d0a758176ad1b3d4dee9e48d6b","_id":"@cryptography/sha1@0.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-QT/QL5R1UEXuTOl2+ADFPcpzUOuI2LW63qxWVYVvAjUMDzO5cxCYsrglQK5dVGoBEQYsRgCxPMal4KpCVt90bA==","shasum":"ea3ef75b467d6fb45e963b80f999c92729efe793","tarball":"https://registry.npmjs.org/@cryptography/sha1/-/sha1-0.1.0.tgz","fileCount":7,"unpackedSize":29602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd514ECRA9TVsSAnZWagAAghkP/iDHSGdURjaLJJkbyvYg\nOec/n0BCJXQ5Nen5gSpUhX42D1VtsrvtHH5Qh0SfILvE8LB9rUQCrN2F6mJd\n3fVJjE2f2v1w6gikaxHC4WqA6p4w7PiHVVqocDiB52iuEE8D1ZPddgsvwkq/\n4iVu1jOilRfR271ycyIwZ72c7QZhiiNbJaIVG/jf6NAOTmol8wv4/Up2KWy8\nyLMFWcX5S+PtbceU55iz/BB/EfIexOqd7Ksp7p7Bm9X0v266WpFV+HmQUwYN\ncAz9qqVgwBc7Y5EdiM8h+XQlB6bacLqQXPfnn0h256fa7ZSIAe/yEuvYz1kp\nxCtuqukawFaJvf3dx6btnWb7Lob9wutKDTx3P9nPP9KjTJYMlsu4G+sTIRcp\nhoZJbzt4BF+yl+YjSNhDOXYzS/GJX7dRzIZd2199Df7+BHkRAUKUtxufOLdv\nlxxSMaxEHCW0J5UIJLr/eydvggK3y1+AEyfbH2TbIU3B6tdbZVXKOhb405+g\nv34B4boSNdkHc41HLmPZP9TATuPqyxB1hLQrhUs3CYy/KFoyb17Xw3nJQew0\n7Bl8grMD0lhOJ193mk9wGbdbM9Ziudl0meaaqBGrfelnn5TDBbWV5YG7N3WL\nvyQjl9WesipWZUoWTdvf1xORjFMtoI6v7HZHgXXfcUFAz9vn1alwvaQPyLIL\ngON7\r\n=FXXw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgD+DVzU7xDNnM1MRND/Mks5V9Kz5DDBMzzoU435Y2xAiBCGYbWrM2tS5cibI3DNRQfN9llzCpHJanh5jWHwEFxVg=="}]},"maintainers":[{"name":"kdarutkin","email":"kdarutkin@gmail.com"}],"_npmUser":{"name":"kdarutkin","email":"kdarutkin@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sha1_0.1.0_1575443972291_0.7840617760126185"},"_hasShrinkwrap":false},"0.2.0":{"name":"@cryptography/sha1","description":"High-performance synchronous SHA-1 implementation for JavaScript","version":"0.2.0","author":{"name":"Konstantin Darutkin"},"scripts":{"test":"jest --coverage","build":"rm -rf dist/* && rollup -c","analyze":"npm run build -- --analyze","prepublish":"npm test","pretest":"npm run build","publish":"npm publish"},"devDependencies":{"@cryptography/utils":"^1.0.0"},"main":"dist/cjs/sha1.min.js","module":"dist/es/sha1.js","types":"dist/typings/index.d.ts","repository":{"type":"git","url":"git+https://github.com/spalt08/cryptography.git","directory":"packages/sha1"},"publishConfig":{"access":"public"},"lint-staged":{"*.{ts}":["eslint"]},"keywords":["sha1","javascript","crypto"],"bugs":{"url":"https://github.com/spalt08/cryptography/issues"},"homepage":"https://github.com/spalt08/cryptography/tree/master/packages/sha1","license":"GPL-3.0-or-later","_id":"@cryptography/sha1@0.2.0","dist":{"shasum":"7ba2ef0054c0510f583fadf791005bbe2571a258","tarball":"https://registry.npmjs.org/@cryptography/sha1/-/sha1-0.2.0.tgz","integrity":"sha512-qlMD9LvSs8fL3+coW3CP4xwLoeWxXTnuFuCiC5r/SEh6Od8YI28OjtAiMwAavw9I0d9Ow3Z9zHwgEEaMwJrFVw==","fileCount":17,"unpackedSize":54663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejz7hCRA9TVsSAnZWagAAEj8P/2p8kHV7DOsZlZco5xcg\ncjC261nrnNvTzpCWRhuVMggQrBJrt+j9XAWoh+FUpk7R8qFkf/2UkdySOxjz\nqWmzhKTw8KuIH3/eE6WQ69bZ9I/BvTZuqzxmi9vu6YFOdGx5HBmewqRTKDk0\n9sNhZYDCT5EdFfU3Zfy0YG5SfrpWRG2CpFpkONzzmUtrXbztdsnIZCPskdAJ\nv2mNdtAIFUXsX+7RzZxSzVGlXo4XooIwdQ9ifFvmQr9BmD90bZ2ksQvyW1/7\nxPKL9gRw89iyzDKCht9cqAN20iWQdR0lv3HHNOBOnIrcFVMbVnyoOVTN1I5y\ns8evi2KHcC1I9bP6PAoUUxhGfMquxwoixFzGt99jfLsKCl9WfW2CXK8jOIZS\n9TYznNLmNEWbYsAMqlkiAdG0t+6VK/cQPOordw36YQws00lau3w0YEOs0Wwy\nQIvfUuD7w4MUmaFNbX+hOy7AITvGpLSIcHl3TZ3fgghSTNz4/FtuTzletBxf\n/YDIhNRmyd61F/ABx1DmtUU9hGSzje0pg7S8dSBnbIE44Z42bolbXY5A6GmS\nQVbTXqrenvbgf8wt1nZJvP31fT1JqimiIBe25hcBnHmRpAmi+okgmCPpsupr\n05lF2IYAN3LczL+UMD+SM3Kka+y4Zo84Br5atKuMyAzVouNvEu2ifaZSsIjZ\nz7Lz\r\n=pRxz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz1uiHfoWcDyo+1ApuEA66fxtALxjSqKYxuApe0dZgqgIgMT5xlteDPCWsT0b/Y5OC6XPCoXLuF6EwO5pBCiUpGfI="}]},"maintainers":[{"name":"kdarutkin","email":"kdarutkin@gmail.com"}],"_npmUser":{"name":"kdarutkin","email":"kdarutkin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sha1_0.2.0_1586446049366_0.7761171685844452"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-04T07:19:32.079Z","0.1.0":"2019-12-04T07:19:32.582Z","modified":"2022-04-05T01:59:13.028Z","0.2.0":"2020-04-09T15:27:29.460Z"},"maintainers":[{"name":"kdarutkin","email":"kdarutkin@gmail.com"}],"description":"High-performance synchronous SHA-1 implementation for JavaScript","homepage":"https://github.com/spalt08/cryptography/tree/master/packages/sha1","keywords":["sha1","javascript","crypto"],"repository":{"type":"git","url":"git+https://github.com/spalt08/cryptography.git","directory":"packages/sha1"},"author":{"name":"Konstantin Darutkin"},"bugs":{"url":"https://github.com/spalt08/cryptography/issues"},"license":"GPL-3.0-or-later","readme":"# @cryptography/sha256\n[![Bundlephobia](https://img.shields.io/bundlephobia/minzip/@cryptography/sha256)](https://bundlephobia.com/result?p=@cryptography/sha1@0.2.0)\n[![Coverage](https://img.shields.io/codecov/c/github/spalt08/cryptography?token=617017dc35344eb6b4637420457746c8)](https://codecov.io/gh/spalt08/cryptography)\n[![Travis CI](https://img.shields.io/travis/spalt08/cryptography)](https://travis-ci.com/spalt08/cryptography)\n\nHigh-performance synchronous SHA-1 implementation for JavaScript. Optimized for browsers.\n  \n## Features\n* Blazing fast\n* Ultra lightweight\n* ECMAScript 3-6\n* Typed\n* Tested`\n\n## Setup\n[Package](https://www.npmjs.com/package/@cryptography/sha1) is available through `npm` and `yarn`\n```\nnpm install @cryptography/sha1\n```\n```\nyarn add @cryptography/sha1\n````\n\n### When you should use @cryptography/sha1\n* Hashing small inputs (< 5kb)\n* Key derivation functions\n* 100% browser support required\n\n### ⚠️ When you should not use this (WebCrypto API preferred cases)\n* Hashing files (> 5kb)\n* Concurrent hashing large amount of messages\n\n## Usage\nThis package is optimized for small byte inputs (<10kb).\n\nAlso, it is highly recommended to run CPU-intensive tasks in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers).\n```js\nimport sha1 from '@cryptography/sha1'\n\n// as Uint32Array([0xa8d627d9, 0x3f518e90, 0x96b6f40e, 0x36d27b76, 0x60fa26d3])\nconst array = sha1('Hello World!') \n\n// as hex-string: \"a8d627d93f518e9096b6f4....\"\nconst hex = sha1('Hello World!', 'hex')\n\n// as binary string: \"Äï\u0015ü\u0011kYoUH\u0001½LÛ,Zß...\"\nconst raw = sha1('Hello World!', 'binary')\n\n// UInt32Array as input\nconst buf = new Uint32Array([0xa8d627d9, 0x3f518e90, 0x96b6f40e, 0x36d27b76, 0x60fa26d3, 0x18ef1adc, 0x43da750e, 0x49ebe4be]);\nsha1(buf)\n```\nFor hashing large files or other data chuncks use `stream()` to create a hashing stream.\n```js\nsha1.stream().update('Hello World!').digest();\n```\n\n## Benchmarks\nFaster than [forge](https://github.com/digitalbazaar/forge), [sjcl](https://github.com/bitwiseshiftleft/sjcl), Rusha and [WebCrypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) in **sequence** mode. \n\n### Try yourself\n* https://jsbench.me/k8k3b15kg0\n\n## Contributing\nContributions are welcome! Contribution guidelines will be published soon.","readmeFilename":"README.md"}