Hi Capitoli, please try using another npm package such as “argon2”

You might need to update the code at your end for hashing and verifying but should be simple:

to hash:

const argon2 = require('argon2');try {const hash = await argon2.hash("password");} catch (err) {//...}

to verify:

try {if (await argon2.verify("<big long hash>", "password")) {// password match} else {// password did not match}} catch (err) {// internal failure}

Unfortunately I am not running in a Windows to try to reproduce your issue but I hope this other package to do the work!

best regards,

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response