Have ideas to improve npm?Join in the discussion! »

    multi-hashing-plus

    1.0.0 • Public • Published

    Cryptocurrency hashing functions for Node.js.

    Tested Node.js v9.5.0

    Algorithms


    • x11
    • x13
    • x15
    • x17
    • nist5
    • neoscrypt
    • scrypt
    • keccak
    • quark
    • bcrypt
    • skein
    • groestl
    • groestlmyriad
    • blake
    • fugue
    • qubit
    • hefty1
    • shavite3
    • lyra2re
    • lyra2rev2
    • lyra2z
    • xevan

    Install

    npm install multi-hashing-plus

    So far this native Node.js addon can do the following hashing algos

    var Hash = require('multi-hashing-plus');
     
    var algorithms = ['quark', 'x11', 'x13', 'x15', 'x17', 'scrypt', 'scryptn', 'xevan', 'keccak', 'lyra2re', 'skein', 'blake'];
     
    var data = new Buffer("7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b", "hex");
     
    var hashedData = algorithms.map(function(algo){
        return Hash[algo](data);
    });
     
    console.log(hashedData);
     
     
     

    Credits

    • NSA and NIST for creation or sponsoring creation of SHA2 and SHA3 algos
    • Keccak - Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van Assche
    • Skein - Bruce Schneier, Stefan Lucks, Niels Ferguson, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon Callas and Jesse Walker.
    • BLAKE - Jean-Philippe Aumasson, Luca Henzen, Willi Meier, and Raphael C.-W. Phan
    • Grøstl - Praveen Gauravaram, Lars Knudsen, Krystian Matusiewicz, Florian Mendel, Christian Rechberger, Martin Schläffer, and Søren S. Thomsen
    • JH - Hongjun Wu
    • Fugue - Shai Halevi, William E. Hall, and Charanjit S. Jutla
    • scrypt - Colin Percival
    • bcrypt - Niels Provos and David Mazières
    • X11, Hefty1, Quark creators (they just mixed together a bunch of the above algos)

    Install

    npm i multi-hashing-plus

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    none

    Unpacked Size

    4.14 MB

    Total Files

    205

    Last publish

    Collaborators

    • avatar