Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

multi-hashing for node js

NotificationsYou must be signed in to change notification settings

zypher420/node-multi-hashing

Repository files navigation

Build Status

Cryptocurrency hashing functions for node.js.

See Algorithms :ALGOS.md

Usage

Install

npm install https://github.com/megeko/node-multi-hashing.git --save

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

varmultiHashing=require('multi-hashing');varalgorithms=['quark','scryptjane'];vardata=Buffer.from("7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b","hex");varhashedData=algorithms.map(function(algo){if(algo==='scryptjane'){//scryptjane needs block.nTime and nChainStartTime (found in coin source)varyaCoinChainStartTime=1367991200;varnTime=Math.round(Date.now()/1000);returnmultiHashing[algo](data,nTime,yaCoinChainStartTime);}else{returnmultiHashing[algo](data);}});console.log(hashedData);//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >

Credits

  • NSA andNIST 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)

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp