What's the best way to implement password hashing and verification in node.js using only the built-in crypto module.
Basically what is needed:
function passwordHash(password) {} // => passwordHash
function passwordVerify(password, passwordHash) {} // => boolean
People usually are using bcrypt or other third-party libs for this purpose. I wonder isn't built-in crypto module huge enough already to cover at least all basic needs?
There's scrypt(), which appears to be the right guy for this purpose, but there's no verified counterpart and nobody seems to care.