Skip to content

fix: use strlen for bcrypt instead of mb_strlen - #319

Merged
rancoud merged 2 commits into
masterfrom
fix/bcrypt
Oct 22, 2026
Merged

rancoud merged 2 commits into
masterfrom
fix/bcrypt

Conversation

@rancoud

@rancoud rancoud commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Description

When using bcrypt algo we must limit to 72 bytes.
Using mb_strlen is wrong with multi bytes string because returns invalid length.
To fix we use strlen.

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4fa2e2b) to head (2fcc8a9).

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #319   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        34        34           
===========================================
  Files              1         1           
  Lines             83        83           
===========================================
  Hits              83        83           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rancoud
rancoud merged commit a68bbf1 into master Oct 22, 2026
4 checks passed
@rancoud
rancoud deleted the fix/bcrypt branch October 22, 2026 21:08
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.

1 participant