{"_id":"@dashevo/x11-hash-js","_rev":"16-2a2e0f43564bace537571692f6ff9cf3","name":"@dashevo/x11-hash-js","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@dashevo/x11-hash-js","version":"1.0.1","keywords":["x11","keccak","groestl","echo","skein","blake","bmw","hash","cubehash","dash","jh","luffa","shavite","simd","skein"],"author":{"name":"quantumexplorer"},"license":"MIT","_id":"@dashevo/x11-hash-js@1.0.1","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"homepage":"https://github.com/quantumexplorer/x11-hash-js#readme","bugs":{"url":"https://github.com/dashpay/x11-hash-js/issues"},"dist":{"shasum":"15651394a7cf223b628f44386b0f794f7175c8c2","tarball":"https://registry.npmjs.org/@dashevo/x11-hash-js/-/x11-hash-js-1.0.1.tgz","fileCount":25,"integrity":"sha512-1OpaqHcJGoiJomf/19kyk9ooLl6OR+hy59x04fh9n8fpkevNU+nNlc5f4JVaoxuP8g5gOzYcwMCYnnHgyRgC1Q==","signatures":[{"sig":"MEUCIQCKSU1iI9Gf07cZIy1mVuRJ5tTNyv2zVaEsuT2n4ie8tgIgUMTv6mAT94uWc8rYhGUFqIT8imE3GSMOjPB0h3JtiFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":643826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBpJCCRA9TVsSAnZWagAAClUP/jmNHzU0Xog1gmpWWjUU\nzGYvrrVIU4Ot49eN2zOwkGz6tRsYkaco9ZPZDCB3h3pGjUms36prxtDn2kIj\nczREqRSG1E06XoAs54j4cc5qgdMjD0jJv+laQr8D5L9T9mppv5loMzDIo9Ma\nPXfGfLNqXJeM9Q+7BXYZ9D5WOgHyKldPimPDzyu2TiUa6roPfVp/rr4INL0t\nzjWzqqg4IpKu9NLZrileWIiB8CVQ3q/i/2tFQ9lbImN9FvtIn/fbweZLKnL2\nBL9bT1kJnGfwoggkKM40LdjhLxDrnja+wh6oIy1UQJO4wUZX4guiwWCErM/W\nUYSAAbcqTC1qrqcxIDkp2gYZYQvoS+PWkL9SaMJPMg10/xbyGiBzGQYFUJzB\nr4o6CTN6PBdjWW6y2ec4yQLWVPvVcYDtVFowbelUUpj5UJ3WMpMqsdARnmDl\nzONSB2aKQXD0fXBRm46Hzx+pl9RJKyxrY+Zeh+vbOG21vCuh7Hg8gjG+qnyI\nJKUVQ3Kw8jEfFBpJtDBCGdHVRAVJr/Az7rC/zm62K+O/lkL+GV0qPZPzHEto\nOaVuCuh+HO8jSi3w24kxPnSs6K4ECOqwm5IK2tSgylEkf+Z2tWcexz36vVvl\ntPM6W3l5p3QlqptoRwCuanzOz2AbboI16v+RlJ8Bkb8F5YBgGQ3pZUkCQGx7\nqUjz\r\n=fWnh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"3a0483bcbe8183229f83f5a8b6fbff4dcc56d503","scripts":{"lint":"eslint index.js lib","test":"mocha --timeout 10000 --full-trace --check-leaks test/test.js && npm run build","bench":"node test/benchmarks.js","build":"grunt"},"_npmUser":{"name":"alex-werner","email":"alex@werner.fr"},"repository":{"url":"git+https://github.com/quantumexplorer/x11-hash-js.git","type":"git"},"_npmVersion":"6.1.0","description":"x11 javascript hashing algorithm in pure javascript","directories":{},"_nodeVersion":"9.3.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.2","karma":"^2.0.2","mocha":"^2.5.3","eslint":"^4.19.1","uglify":"^0.1.5","benchmark":"^2.1.4","phantomjs":"^2.1.7","browserify":"^13.3.0","karma-chai":"^0.1.0","grunt-karma":"^2.0.0","grunt-multi":"0.0.7","karma-mocha":"^1.3.0","grunt-browserify":"^5.3.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-uglify":"^1.0.2","karma-mocha-reporter":"^2.2.5","eslint-config-standard":"^10.2.1","karma-firefox-launcher":"^1.1.0","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/x11-hash-js_1.0.1_1527157314156_0.4284674110471547","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@dashevo/x11-hash-js","version":"1.0.2","keywords":["x11","keccak","groestl","echo","skein","blake","bmw","hash","cubehash","dash","jh","luffa","shavite","simd","skein"],"author":{"name":"quantumexplorer"},"license":"MIT","_id":"@dashevo/x11-hash-js@1.0.2","maintainers":[{"name":"alex-werner","email":"alex@werner.fr"},{"name":"andyfreer","email":"andy@dash.org"},{"name":"antouhou","email":"antouhou@gmail.com"},{"name":"cofresi","email":"cofresi@dash.org"},{"name":"dreyacosta","email":"david.rey.acosta@gmail.com"},{"name":"kamuela","email":"kamuela.franco@gmail.com"},{"name":"nmarley","email":"nathan.marley@gmail.com"},{"name":"pierrevr","email":"pierre@dash.org"},{"name":"seigler","email":"joshua@seigler.net"},{"name":"shumkov","email":"ivan@shumkov.ru"},{"name":"snogcel","email":"ledniknoj@gmail.com"}],"homepage":"https://github.com/dashpay/x11-hash-js#readme","bugs":{"url":"https://github.com/dashpay/x11-hash-js/issues"},"dist":{"shasum":"a9d7ef55d57654f7eae04825cf232f7fd20acdd6","tarball":"https://registry.npmjs.org/@dashevo/x11-hash-js/-/x11-hash-js-1.0.2.tgz","fileCount":25,"integrity":"sha512-3vvnZweBca4URBXHF+FTrM4sdTpp3IMt73G1zUKQEdYm/kJkIKN94qpFai7YZDl87k64RCH+ckRZk6ruQPz5KQ==","signatures":[{"sig":"MEQCIDmL54Z06uFtvUQj+ZGqothhEfAO7WclyEPIssYETKlwAiAOTSjNewMv7msCjvEcEO1/1T6WuctbvrvyXAtXRQm6MQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":720520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCwl2CRA9TVsSAnZWagAA6yAP/igJUeUcm/fAc4YTF76l\nOmtpyEIylYnW02gqhx90xXl866iOVjY6mRmRq6zM/qwFFjCNnjH7Ne+S003j\nIdUQSpWs04w2nVI6udEPIEt2Og4xmGmYfgKkwYR8kTtDydnhYH3wFUAFH0hf\njTeYOQkHWqMsHWPUks+kBcIY/1DYsuYZjj4ika7QYpoZ5qtwhQrQJIrZPjkI\nvxhn2avemo0to3gy9msuuWN/uhL8IgGEfCxYcnGCSShYvvAPESp4HIvdaF1x\nZTtqMVMpdI11rPMgUjgJ/immsgqzYeLeHh3JSh4QT3bEaxW0uwn472U9zGgP\nOxSgYd1wBFsjP1Z6c50EHoAsfUK5BqhSzCuuPg8s5DlbisxbdikSVZihHraB\nLT1TWcFIbUKMzJG6JXoSYeKBgnJR//I/Eo3c2uwkM1jjmB1NoY9q6YDKm8U2\nRsBDPmBXUqeIPIoejYhboe1xN8eRxEEvcSAq6Pn3EtMHvm5S3+MLmqdmAjzD\noF4AkitDqOnESOkJyq4IVZ+MVy312DtQE1cepDDwbFXXVr3ky5bsm6ljXhDC\naGIrCp3MjIWJ1t53alaH0xpplaPNw1C6b813nsuthX+XTDRaym8MJ1Gg0MZl\nSbPGFfmlmY0xGPbk3hhASneWlQwNGPB7blWRXA6CbzQxf2WuPvQ7bhpzuKW+\nEM2m\r\n=rH8G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e633176f0fd7d698d19e48978437865a4e98bf99","scripts":{"lint":"eslint index.js lib","test":"mocha --timeout 10000 --full-trace --check-leaks test/test.js && npm run build","bench":"node test/benchmarks.js","build":"grunt"},"_npmUser":{"name":"alex-werner","email":"alex@werner.fr"},"repository":{"url":"git+https://github.com/dashpay/x11-hash-js.git","type":"git"},"_npmVersion":"6.1.0","description":"x11 javascript hashing algorithm in pure javascript","directories":{},"_nodeVersion":"9.3.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.2","karma":"^2.0.2","mocha":"^2.5.3","eslint":"^4.19.1","uglify":"^0.1.5","benchmark":"^2.1.4","phantomjs":"^2.1.7","browserify":"^16.2.2","karma-chai":"^0.1.0","grunt-karma":"^2.0.0","grunt-multi":"0.0.7","karma-mocha":"^1.3.0","grunt-browserify":"^5.3.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-uglify":"^1.0.2","karma-mocha-reporter":"^2.2.5","karma-chrome-launcher":"^2.2.0","eslint-config-standard":"^10.2.1","karma-firefox-launcher":"^1.1.0","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/x11-hash-js_1.0.2_1527449972539_0.5970031684461754","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-05-24T10:21:54.155Z","modified":"2026-01-20T16:36:27.025Z","1.0.1":"2018-05-24T10:21:54.317Z","1.0.2":"2018-05-27T19:39:32.741Z"},"bugs":{"url":"https://github.com/dashpay/x11-hash-js/issues"},"author":{"name":"quantumexplorer"},"license":"MIT","homepage":"https://github.com/dashpay/x11-hash-js#readme","keywords":["x11","keccak","groestl","echo","skein","blake","bmw","hash","cubehash","dash","jh","luffa","shavite","simd","skein"],"repository":{"url":"git+https://github.com/dashpay/x11-hash-js.git","type":"git"},"description":"x11 javascript hashing algorithm in pure javascript","maintainers":[{"email":"ivan@shumkov.ru","name":"shumkov"},{"email":"obusco@gmail.com","name":"alex-werner"},{"email":"nathan.marley@gmail.com","name":"nmarley"},{"email":"cofresi@dash.org","name":"cofresi"},{"email":"evodeploy@blackcarrot.be","name":"evodeploy"},{"email":"djavidoff@gmail.com","name":"jawid-h"}],"readme":"# x11-hash-js\n\n> Performs the [x11 hashing](https://docs.dash.org/en/latest/introduction/features.html#x11-hash-algorithm) algorithm used in the [Dash cryptocurrency](https://dash.org) in JavaScript.\n\n## Usage\n\nInstall the library as a Node module.\n\n```\n$ npm install --save @dashevo/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/dashpay/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"}