Giter Site home page Giter Site logo

solertis / mhash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sembiance/mhash

0.0 2.0 0.0 513 KB

Provides several hashing algorithms for node.js by binding to mhash. Includes support for 27 different hash algorithms including: md5, md4, md2, sha1, sha256, whirlpool, crc32, etc.

License: The Unlicense

Python 27.07% JavaScript 8.35% Shell 2.78% C++ 61.81%

mhash's Introduction

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

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

mhash's People

Contributors

lsmoura avatar mcandre avatar mscdex avatar sembiance avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.