Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help] Could someone run this file for me #36

Open
olueiro opened this issue Jun 13, 2017 · 0 comments
Open

[help] Could someone run this file for me #36

olueiro opened this issue Jun 13, 2017 · 0 comments

Comments

@olueiro
Copy link

olueiro commented Jun 13, 2017

I'm having trouble ( #31 ) building this module :'(

Could someone run this little script (untested) and send me the answer

var mh = require('multi-hashing');
 
var hashs = ["quark", "x11", "scrypt", "scryptn", "scryptjane", "keccak", "bcrypt", "skein", "groestl", "groestlmyriad", "blake", "fugue", "qubit", "hefty1", "shavite3", "cryptonight", "x13", "boolberry", "nist5", "sha1", "x15", "fresh"];
var hashsLength = hashs.length;
 
var input = new Buffer("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget ligula eu lectus lobortis condimentum. Aliquam nonummy auctor massa. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla at risus. Quisque purus magna, auctor et, sagittis ac, posuere eu, lectus. Nam mattis, felis ut adipiscing.");
 
for (var i = 0; i < hashsLength; i++) {
  var hash = hashs[i];
  if(hash=="scrypt") {
    console.log(hash + ": " + (mh[hash](input, 1, 1)).toString());
  } else if(hash=="scryptn") {
    console.log(hash + ": " + (mh[hash](input, 1)).toString());
  } else if(hash=="scryptjane") {
    console.log(hash + ": " + (mh[hash](input, 1, 1, 1, 1)).toString());
  } else if(hash=="boolberry") {
    console.log(hash + ": " + (mh[hash](input, input, 1)).toString());
  } else if(hash=="cryptonight") {
    console.log(hash + ": " + (mh[hash](input, false)).toString());
    console.log(hash + " (fast): " + (mh[hash](input, true)).toString());
  } else {
    console.log(hash + ": " + (mh[hash](input)).toString());
  }
}

thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant