2.2.0 • Published 5 years ago

mhash v2.2.0

Weekly downloads
23
License
-
Repository
github
Last release
5 years ago

Description

Provides several hashing algorithms for node.js by binding to mhash

NOTE: MacOS X users need to have XCode installed (provides gcc)

Installation with NPM

npm install mhash --python=python2

May need to manually run first to build mhash dep:

./libmhash-config.sh
./libmhash-build.sh

Usage

Syntax: hash("algo-type", String || Buffer)
//First argument is a string, one of the supported algorihms below.
//Second argument can either be a String or a Buffer.
var hash = require("mhash");

console.log(hash("md2", "testing"));

Supported Hashing Algorithms

  • crc32

  • crc32b

  • md2

  • md4

  • md5

  • haval128

  • haval160

  • haval192

  • haval224

  • haval256

  • sha1

  • sha224

  • sha256

  • sha384

  • sha512

  • ripemd128

  • ripemd160

  • ripemd256

  • ripemd320

  • tiger128

  • tiger160

  • tiger192

  • gost

  • whirlpool

  • adler32

  • snefru128

  • snefru256

Known Issues

The crc32 and crc32b may not be what you expect due the way the mhash library computes these.

See Issue #1 for more details.

Manual Installation

git clone "https://github.com/Sembiance/mhash.git"
cd mhash
node-gyp configure build
2.2.0

5 years ago

2.1.12

5 years ago

2.1.11

5 years ago

2.1.10

5 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.2

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

10 years ago

0.1.13

11 years ago

0.1.12

11 years ago

0.1.11

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

12 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago