Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of Support for $2y$ Hashing Algorithm in bcrypt Module #1056

Open
Alekseyfgl opened this issue Nov 6, 2024 · 1 comment
Open

Lack of Support for $2y$ Hashing Algorithm in bcrypt Module #1056

Alekseyfgl opened this issue Nov 6, 2024 · 1 comment

Comments

@Alekseyfgl
Copy link

Description: It appears that the bcrypt module does not support the $2y$ hashing algorithm. This algorithm version may not be recognized by the current implementation of bcrypt in Node.js (Node.js version: 22, Operating System:Ubuntu 22).

Steps to Reproduce:

Attempt to verify or generate a password hash using the $2y$ prefix.
Observe the error or lack of compatibility in the bcrypt module.
Expected Behavior: Support for the $2y$ hashing algorithm, allowing bcrypt to recognize and handle $2y$ prefixed hashes seamlessly.

Actual Behavior: The bcrypt module does not appear to support or recognize $2y$, leading to errors when working with hashes generated using this prefix.

Additional Context: Please advise on whether there are any workarounds or updates planned to add support for $2y$, or if an alternative approach should be considered.

Thank you!

@mdesoto
Copy link

mdesoto commented Nov 20, 2024

See: #849 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants