kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.43k stars 510 forks source link

Is there a way of changing the hash algorithm from `$2a$` to `$2b$` #900

Closed opticSquid closed 2 years ago

opticSquid commented 2 years ago

Whenever I create a hash with bcrypt it uses $2a$ as hash algorithm identifier. While going through the readme file I found out it can also have $2b$ as hash algorithm identifier. Is there any explicit way to tell bcrypt to use $2b$ instead of $2a$ while creeating hashes.

recrsn commented 2 years ago

You are probably using a very old version of bcrypt. Never versions default to $2b2$

opticSquid commented 2 years ago

If then also can we customize the begining of the hash

opticSquid commented 2 years ago

You are probably using a very old version of bcrypt. Never versions default to $2b2$

yeah as you can see issue was raised way back in Nov 2021