• argv_minus_one ( argv_minus_one@beehaw.org ) BannedBanned
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Not necessarily. There is another reason. Password hash functions like PBKDF2 are, by design, slow. Allowing extremely long passwords while using such a hash function creates a denial-of-service vulnerability.

    Assuming the hash function takes proportionally more time to compute the hash of a longer password, of course. I believe they do, but I’m not certain.