{"_id":"@ecrypty/x11-hash-js","_rev":"1-8df579045357b97ba8eeba7d29b66c60","name":"@ecrypty/x11-hash-js","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.3":{"name":"@ecrypty/x11-hash-js","version":"1.0.3","description":"x11 javascript hashing algorithm in pure javascript","main":"index.js","scripts":{"build":"grunt","test":"mocha --timeout 10000 --full-trace --check-leaks test/test.js && npm run build","bench":"node test/benchmarks.js","lint":"eslint index.js lib"},"repository":{"type":"git","url":"git+https://github.com/ecrypty/x11-hash-js.git"},"keywords":["x11","keccak","groestl","echo","skein","blake","bmw","hash","cubehash","florijncoin","jh","luffa","shavite","simd","skein"],"author":{"name":"quantumexplorer"},"license":"MIT","bugs":{"url":"https://github.com/ecrypty/x11-hash-js/issues"},"devDependencies":{"benchmark":"^2.1.4","browserify":"^16.2.2","chai":"^3.5.0","eslint":"^4.19.1","eslint-config-standard":"^10.2.1","grunt":"^1.0.2","grunt-browserify":"^5.3.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-uglify":"^1.0.2","grunt-karma":"^2.0.0","grunt-multi":"0.0.7","karma":"^2.0.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-phantomjs-launcher":"^1.0.4","mocha":"^5.2.0","phantomjs":"^2.1.7","uglify":"^0.1.5"},"gitHead":"9b4c50759f2a30a1baf1519196097ab635995ead","homepage":"https://github.com/ecrypty/x11-hash-js#readme","_id":"@ecrypty/x11-hash-js@1.0.3","_nodeVersion":"14.4.0","_npmVersion":"6.14.10","dist":{"integrity":"sha512-W7Do8LqcgcgdhcMquczQ1mO+0Tey5PnG+bkbjAoBzMUtMYF6jlZuT1VCbpIBsNVzFI6216sSKLJfTmFxKqw6Qg==","shasum":"9ba6fe28f093c6f668c4e56484da58eb3e7e00b0","tarball":"https://registry.npmjs.org/@ecrypty/x11-hash-js/-/x11-hash-js-1.0.3.tgz","fileCount":25,"unpackedSize":722205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBgkWCRA9TVsSAnZWagAA0w8QAI6gmZrXnffACCASNVUh\nbZ4lmWOw84Bg1P4DVKN9sk+U5rKA5DUbyEoWg37yWQSFmBve31iyzsRAa7C1\n/co5q3oxdA/qagQO+uEbe5mr+4vG0PFc/T6sfk0xpXKPQfqmdKdczOwMzgq3\nAwBqO57UTXAg284fzhhyJJBWz7J0qwJp0td/wdHY7rIUx9O85ZVrK4SY+5TQ\nSJYBrUkQUOaGmlpgUthqfxjZzk9jfD+CPpWw1yLAcv0hIB2DMDbw2hc4dwws\ns/z8I07M06mlcOqNNGeJGG6gPglXU/z/wpyz64C7RSbqCocsQH6QSLrawrMr\nX5mPTqbEUDRSiPm1d71F2ipE+Y4MxKCSSIisUXgRbIK7EyDnyi8xfDcMx8lA\nejudQBzQsAn71NpgNHsbjysR9Tidi2puZ6XoHKXuyo0bMNA/5bFZLRlOD85i\nJlpHbojYOLsra0YMguWQUPBEzvVef8AWRl0VYSsNIAKXvlMfvNVEyFt0dDKQ\nteptIkNEIa7T7I+3KJJouwg5TlShvFYfVBLvVXVZS03G1rEy7TsNN0OzTpow\nBnwxOcu1qZiw+4M5SAfQAiEG783Vd0Xkis86qczT9lhvJMYk2FsWzbXfqWji\njQ7F2I67tnqGCA1BOH+n+1NfQ3urzTBNA/r4xqtZ0OGV0YyHLrH5UbMTXRUN\nrxgz\r\n=oevI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXI72hFynTKW6lCTHSuFQZurAguy7vE76DyB88h2eDqQIgW9OMbO/5di8UU+Ux5A1VVnFze1nP+zgjLS6R1+MVP+c="}]},"_npmUser":{"name":"ecrypty","email":"vvlien@ecrypty.com"},"directories":{},"maintainers":[{"name":"ecrypty","email":"vvlien@ecrypty.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/x11-hash-js_1.0.3_1611008277951_0.021579299830666976"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-18T22:17:57.916Z","1.0.3":"2021-01-18T22:17:58.149Z","modified":"2022-04-05T06:39:57.881Z"},"maintainers":[{"name":"ecrypty","email":"vvlien@ecrypty.com"}],"description":"x11 javascript hashing algorithm in pure javascript","homepage":"https://github.com/ecrypty/x11-hash-js#readme","keywords":["x11","keccak","groestl","echo","skein","blake","bmw","hash","cubehash","florijncoin","jh","luffa","shavite","simd","skein"],"repository":{"type":"git","url":"git+https://github.com/ecrypty/x11-hash-js.git"},"author":{"name":"quantumexplorer"},"bugs":{"url":"https://github.com/ecrypty/x11-hash-js/issues"},"license":"MIT","readme":"# x11-hash-js\n\n> Performs the [x11 hashing](https://docs.florijncoin.org/en/latest/introduction/features.html#x11-hash-algorithm) algorithm used in the [Florijncoin cryptocurrency](https://florijncoin.org) in JavaScript.\n\n## Usage\n\nInstall the library as a Node module.\n\n```\n$ npm install --save @ecrypty/x11-hash-js\n```\n\nReference the library within a Node module.\n\n```js\nvar x11 = require('x11-hash-js');\n\nconsole.log(x11.digest('The great experiment continues.'));\n// -> '4da3b7c5ff698c6546564ebc72204f31885cd87b75b2b3ca5a93b5d75db85b8c'\n```\n\nDownload the browserified library from the [dist](https://github.com/ecrypty/x11-hash-js/tree/master/dist) folder and include it in your HTML.\n\n```html\n<html>\n<head>\n  <script src='./dist/x11-hash.min.js'></script>\n  <script>\n  let x11 = require('x11hash');\n  console.log(x11.digest('The great experiment continues.'));\n  // -> '4da3b7c5ff698c6546564ebc72204f31885cd87b75b2b3ca5a93b5d75db85b8c'\n  </script>\n</head>\n<body></body>\n</html>\n```\n\nCall individual hash functions within the x11 digest.\n\n```js\nconsole.log(x11.blake('The great experiment continues.'));\n// -> '8f257723af0741fb7d3d8c264a5ea86a57d4ae833557de04f5f78fad1ac17d6dfa1ae4a78a7564c08fc21d5d8cdd2793ca17d5500ecc2b43eb8aaf9c220d7b49'\n\nconsole.log(x11.bmw('The great experiment continues.'));\n// -> '7b30b4f1ccd83692bc6a01b1f7e374b59b81da6b21421679ae59d84c4f73afec5a0857565b6ebc1b9ddf9da5e75bf1ecd0ba6f5a75b7926ba9278385fb83533c'\n\nconsole.log(x11.cubehash('The great experiment continues.'));\n// -> '64394bcb9d7844070c8516480ea5f03f68386f33c3829e08bf38bea11f09eba5806aa7831cfbe8e515678b0cad7d4ac888ea2b9ea8f63f0cc918d5a6a76b7ae9'\n\nconsole.log(x11.echo('The great experiment continues.'));\n// -> 'b1db282b1672f3423c1e1bdf4496a8ddda0b6f483e92e9a8be2efbaab0ea230814f1f1485d919285deac13794dc215000eb39a47ac32bfc07299a0475049be2e'\n\nconsole.log(x11.groestl('The great experiment continues.'));\n// -> '6cea044acf31194eab7d1adb704712c34dd4f0b6a470b0f297832addab691faa459474c651efdbebddb138a2a9adb41705e0fb75741775314ddd8e5449ace986'\n\nconsole.log(x11.jh('The great experiment continues.'));\n// -> '90c7090e9d9a45bc79f476ae7fa3e7e4416d1c26b127d1d418ee9bd96b541933b0f144a0d4c6594944393e39fb6b98ceb54752af55198e00953d638183482521'\n\nconsole.log(x11.keccak('The great experiment continues.'));\n// -> '4c7e9c893fcdc87a2fd604574a4a5b9a0b6864665ed19057dedf24858314690ba45d6bbcfb86cd7182d1677e2d30dad9716ee99eb8ea267c6638f47ef20e0226'\n\nconsole.log(x11.luffa('The great experiment continues.'));\n// -> 'ea531ce38473fc4bd508c5396194dd6201699d47e25bd4d6b0c5dc7ab0627831e01ea027ebe33d80f608f139aa9fd0c6d923f32de9b5d714026300ed1c9a2f48'\n\nconsole.log(x11.shavite('The great experiment continues.'));\n// -> '6fbca2d53a26e22e6df1a8064230bdb98c0a612b64dad958f16757cf8ee8526862a0e4f56be69b98b07f0ea47db7211cf42352443fc806013374e819f26cb923'\n\nconsole.log(x11.simd('The great experiment continues.'));\n// -> '13ae2c08260f7d5abcfa791446800c1eaed8c5332ec437222428a28823aa2ba19a5907a2c860c12c0b894bdf9c0d64f807cb9512f1ed42980d15747ff4a26c1c'\n\nconsole.log(x11.skein('The great experiment continues.'));\n// -> '88a9dd727bb9b7cbd59612edbcd6b321427f473acc5673d7dffb16071dc71821d0cc1b94dccf7e5f71a0a94019a7e764d3315c3f4a40f73aee4ad98c75bcc2f7'\n\n```\n\n## API\n\n### x11.digest(str)\n\nReturns a `string` representation of the x11 hash of an input `string` ***str***.\n\n#### str\n\nType: `string`\n\nThe string to be hashed.\n\n### x11.digest(input, inputFormat, outputFormat)\n\nReturns the x11 hash of ***input*** with the input and output types variable between a `string`, 8 bit `array` or 32 bit `array`\n\n#### input\n\nType: `string` or `array`\n\nThe input data to be hashed.\n\n#### inputFormat\n\nType: `number`\n\nSpecifies the format and type of the ***input*** value:\n\n - **0**: `string`\n - **1**: 8 bit `array`\n - **2**: 32 bit `array`\n\n#### outputFormat\n\nType: `number`\n\nSpecifies the format and type of the return value:\n\n - **0**: `string`\n - **1**: 8 bit `array`\n - **2**: 32 bit `array`\n","readmeFilename":"README.md"}