Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-974

Use appropriate hash comparators for sensitive functions

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.9, 3.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Python's hmac module provides a constant-time comparison function for hashes (hmac.compare_hash). Let's use that, and provide our own on python versions that don't provide the function.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: