Skip to content

omit version prefixes from bcrypt verify #8

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

Open
wants to merge 1 commit into
base: 014-dev
Choose a base branch
from

Conversation

dylan-conway
Copy link
Member

@dylan-conway dylan-conway commented Apr 15, 2025

The input could have any version prefix. For backwards compatibility, it should not be compared with the output version which is always $2b

Will fix oven-sh/bun#19032

@190n
Copy link

190n commented Apr 15, 2025

@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented Apr 15, 2025

Should we also check for the prefix instead of assuming it always exists?

@dylan-conway
Copy link
Member Author

Failing on unknown versions sounds reasonable. Need to check with other implementations.

should this be a PR to ziglang/zig?

Yes, this should be upstreamed

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.

3 participants