infihash
v1.0.3
Published
A hashing algorithm implemented in C++ and exposed as an npm package.
Downloads
471
Maintainers
Readme
node-gyp configure npm run build
const password = "mypassword";
// Generate hash (default: rounds=3, memKB=1024) const storedHash = hash(password); console.log("Stored hash (salt:hash):", storedHash);
// Verify correct password const isCorrect = verify(password, storedHash); console.log("✅ Verification (correct password):", isCorrect); // true
// Verify wrong password const isWrong = verify("wrongpassword", storedHash); console.log("❌ Verification (wrong password):", isWrong); // false
