-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
50 lines (50 loc) · 3.98 KB
/
package.json
File metadata and controls
50 lines (50 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "node-multi-hashing",
"version": "1.0.0",
"main": "multihashing",
"author": {
"name": "cryptorex"
},
"repository": {
"type": "git",
"url": "https://github.com/cryptorex/node-multi-hashing.git"
},
"dependencies": {
"bindings": "*"
},
"keywords": [
"scrypt",
"scryptjane",
"script-n",
"x11",
"quark",
"keccak_hash",
"skein",
"bcrypt",
"keccak",
"blake",
"shavite",
"fugue",
"yescrypt",
"sha1",
"neoscrypt",
"decrypt"
],
"scripts": {
"install": "node-gyp rebuild"
},
"gypfile": true,
"readmeFilename": "README.md",
"description": "node-multi-hashing",
"bugs": {
"url": "https://github.com/cryptorex/node-multi-hashing/issues"
},
"readme": "node-multi-hashing\n===============\n\n[](https://travis-ci.org/zone117x/node-multi-hashing)\n\n[](https://nodei.co/npm/multi-hashing/)\n\nCryptocurrency hashing functions for node.js.\n\n\nAlgorithms\n----------\n* quark\n* x11\n* x13\n* x14\n* x15\n* nist5\n* scrypt\n* scryptn\n* scryptjane\n* keccak\n* bcrypt\n* skein\n* groestl\n* blake\n* fugue\n* qubit\n* hefty1\n* shavite3\n* cryptonight\n* boolberry\n* lyra2re\n* lyra2re2\n* whirlpoolx\n\nUsage\n-----\n\nInstall\n\n```bash\nnpm install multi-hashing\n```\n\nSo far this native Node.js addon can do the following hashing algos\n\n```javascript\nvar multiHashing = require('multi-hashing');\n\nvar algorithms = ['quark', 'x11', 'scrypt', 'scryptn', 'scryptjane', 'keccak', 'bcrypt', 'skein', 'blake'];\n\nvar data = new Buffer(\"7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b\", \"hex\");\n\nvar hashedData = algorithms.map(function(algo){\n if (algo === 'scryptjane'){\n //scryptjane needs block.nTime and nChainStartTime (found in coin source)\n var yaCoinChainStartTime = 1367991200;\n var nTime = Math.round(Date.now() / 1000);\n return multiHashing[algo](data, nTime, yaCoinChainStartTime);\n }\n else{\n return multiHashing[algo](data);\n }\n});\n\n\nconsole.log(hashedData);\n//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >\n\n\n```\n\nCredits\n-------\n* [NSA](http://www.nsa.gov/) and [NIST](http://www.nist.gov/) for creation or sponsoring creation of SHA2 and SHA3 algos\n* [Keccak](http://en.wikipedia.org/wiki/Keccak) - Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van Assche\n* [Skein](http://en.wikipedia.org/wiki/Skein_(hash_function)) - Bruce Schneier, Stefan Lucks, Niels Ferguson, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon Callas and Jesse Walker.\n* [BLAKE](http://en.wikipedia.org/wiki/BLAKE_(hash_function)) - Jean-Philippe Aumasson, Luca Henzen, Willi Meier, and Raphael C.-W. Phan\n* [Grøstl](http://en.wikipedia.org/wiki/Gr%C3%B8stl) - Praveen Gauravaram, Lars Knudsen, Krystian Matusiewicz, Florian Mendel, Christian Rechberger, Martin Schläffer, and Søren S. Thomsen\n* [JH](http://en.wikipedia.org/wiki/JH_(hash_function)) - Hongjun Wu\n* [Fugue](http://en.wikipedia.org/wiki/Fugue_(hash_function)) - Shai Halevi, William E. Hall, and Charanjit S. Jutla\n* [scrypt](http://en.wikipedia.org/wiki/Scrypt) - Colin Percival\n* [bcrypt](http://en.wikipedia.org/wiki/Bcrypt) - Niels Provos and David Mazières\n* [X11](http://www.darkcoin.io/), [Hefty1](http://heavycoin.github.io/about.html), [Quark](http://www.qrk.cc/) creators (they just mixed together a bunch of the above algos)\n",
"homepage": "https://github.com/cryptorex/node-multi-hashing",
"_id": "unomp-multi-hashing@1.0.0",
"dist": {
"shasum": "667b47fa00966d584ff128b700c354a1679cf6cb"
},
"_resolved": "git://github.com/wareck/node-multi-hashing.git#51244e0d6d1c60c37fb3b73058b39fc1d2ff1c0d",
"_from": "multi-hashing@git://github.com/wareck/node-multi-hashing.git"
}