Skip to content

BCrypt wrap bug detected #18

Description

@mo7ty

Starting from BCrypt release - v5.0.0:

  • Passing hashpw a password longer than 72 bytes now raises a
    ValueError. Previously the password was silently truncated, following the
    behavior of the original OpenBSD bcrypt implementation.

The internal check for BCrypt wrap bug in _BcryptCommon/_finalize_backend_mixin()/detect_wrap_bug(indent)`, is failing with:

ValueError: password cannot be longer than 72 bytes, truncate manually if necessary (e.g. my_password[:72])

Reproducible running test_handlers_bcrypt with latest BCrypt release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions