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

Exact password length in Javascript comparison #93

Open
lucasMontenegro opened this issue Jan 19, 2019 · 1 comment
Open

Exact password length in Javascript comparison #93

lucasMontenegro opened this issue Jan 19, 2019 · 1 comment
Labels

Comments

@lucasMontenegro
Copy link

In the README you say that the bcrypt algorithm only works with passwords that are up to 72 bytes long. And in this stack overflow question I read that in JS a string is a finite ordered sequence of zero or more 16-bit unsigned integer values. If those 72 bytes are 8-bit long does this mean that in my code I have to check password.length > 36?
Bcryptjs doesn't seem to care.

Copy link

github-actions bot commented Mar 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the stale label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant