Skip to content

BCrypt wrap bug detected #18

@mo7ty

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.

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