siemah / nodejs-password

nodejs functions helpers to hash passwords like password_hash and password_verify on PHP
3 stars 1 forks source link

Hash not verifying #3

Open Ciao121 opened 3 weeks ago

Ciao121 commented 3 weeks ago

I'm using this code:

password='YLY7AdZRvG'
password_hash(password).then(hash => {
      console.log(hash)
})

And the output is: $2y$O/efRrDqGWcGYfP93jOQShDEVtWJ4Gq6XAjF0dZ1YbensfAe0HbWqDTkBpwYr+4obOEmA55ZFJf/VuihO9GKWw And using those values on https://onlinephp.io/password-verify i get "false". Any idea? Thank you

siemah commented 3 weeks ago

Hi @Ciao121 , i am going to look into it

siemah commented 2 weeks ago

This package helps to provide something similar to php api but the hashing is different in nodejs because this package is just a wrapper of code nodejs functions