Skip to content

Conversation

shivansh84ya
Copy link

fix: Updated bcrypt library to resolve compatibility issue (#1853)

  • Updated the bcrypt library to the latest version to support hashes beginning with '$2b'.
  • Implemented changes to ensure backward compatibility with existing hashes.
  • Verified functionality using the provided test case with 'Bcrypt compare' in CyberChef.

Resolves: #1853

@CLAassistant
Copy link

CLAassistant commented Jul 6, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

@jonycoo jonycoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the failing Test, the BcryptCompare.mjs has not been changed to the new Library.
The other Error: failing to find index.mjs
does not seem to come directly from the changes, it may be a secondery side-effect from the first one.

@shivansh84ya
Copy link
Author

@jonycoo
I will investigate this more and address these issues before resubmitting the pull request.

@a3957273
Copy link
Member

Hey! This pull request has gotten rather old and that's our fault. This project stopped being actively maintained for a while and it looks like your pull request has started to gather dust. Would you be able to update your branch to the latest version of CyberChef and we'll give it a review?

@@ -102,7 +102,7 @@
"argon2-browser": "^1.18.0",
"arrive": "^2.4.1",
"avsc": "^5.7.7",
"bcryptjs": "^2.4.3",
"bcrypt": "^5.1.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bcrypt, which requires node-gyp, supports a far fewer subset of Node versions than bcryptjs. Does the bcryptjs package also support the necessary functionality?

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

Successfully merging this pull request may close these issues.

Bug report: bcrypt version old
4 participants