Skip to content

Instantly share code, notes, and snippets.

@kentquirk
Created June 28, 2018 01:48
Show Gist options
  • Save kentquirk/6a47baa229e4e7a4564720b395dd0789 to your computer and use it in GitHub Desktop.
Save kentquirk/6a47baa229e4e7a4564720b395dd0789 to your computer and use it in GitHub Desktop.
Test of full hasher with promises
m = require("./objtest3.js");
h = m.newHasher("This is a test")
h.hash().then((r) => {
console.log("hash of '" + h.s + "' is:", r.slice(0, 4))
}).catch((e) => {
console.log("Error: ", e)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment