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

Fix bcrypt hard limit on passwords to 71 bytes #5356

Commits on Jan 20, 2018

  1. Fix bcrypt hard limit on passwords to 71 bytes

    Despite the original bcrypt paper claiming passwords must be a
    maximum of 56 bytes, the implementations are compatible to up to 72
    bytes.
    
    Since increasing the limit doesn't break compatibility, but other
    implementations allow as many as 72 bytes, let's increase the
    arbitrary limitation of 51 characters (which was wrong anyway) to 72
    bytes, minus the leading null byte, that is a password of 71 bytes.
    ysbaddaden authored and RX14 committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    a00ecc8 View commit details
    Browse the repository at this point in the history