Skip to content

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

Open
@Alekseyfgl

Description

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions