Skip to content

Commit 5e96997

Browse files
Init
0 parents  commit 5e96997

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+29474
-0
lines changed

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
node-multi-hashing
2+
===============
3+
4+
Cryptocurrency hashing functions for node.js.
5+
6+
Usage
7+
-----
8+
9+
Install
10+
11+
```bash
12+
npm install multi-hashing
13+
```
14+
15+
16+
Hash your data
17+
18+
```javascript
19+
var multiHashing = require('multi-hashing');
20+
21+
var data = new Buffer("hash me good bro");
22+
var hashed = multiHashing.x11(data); //returns a 32 byte buffer
23+
24+
console.log(hashed);
25+
//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >
26+
```
27+
28+
Credits
29+
-------
30+
31+
* Creators of the SHA2 and SHA3 hashing algorithms used here
32+
* X11 & Quark creators

bcrypt.c

+566
Large diffs are not rendered by default.

bcrypt.h

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef BCRYPT_H
2+
#define BCRYPT_H
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
void bcrypt_hash(const char *input, char *output);
9+
10+
#ifdef __cplusplus
11+
}
12+
#endif
13+
14+
#endif

binding.gyp

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"targets": [
3+
{
4+
"target_name": "multihashing",
5+
"sources": [
6+
"multihashing.cc",
7+
"scrypt.c",
8+
"scryptjane.c",
9+
"scryptn.c",
10+
"keccak.c",
11+
"skein.c",
12+
"x11.c",
13+
"quark.c",
14+
"sha3/aes_helper.c",
15+
"sha3/blake.c",
16+
"sha3/bmw.c",
17+
"sha3/cubehash.c",
18+
"sha3/echo.c",
19+
"sha3/groestl.c",
20+
"sha3/jh.c",
21+
"sha3/keccak.c",
22+
"sha3/luffa.c",
23+
"sha3/shavite.c",
24+
"sha3/simd.c",
25+
"sha3/skein.c"
26+
]
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)