• 𝕾𝖕𝖎𝖈𝖞 𝕿𝖚𝖓𝖆@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    12 days ago

    How large is the file a password is stored on? Can’t be more than a few kB. You could probably store the plaintext passwords of literally every Facebook account on one reasonably sized hard disk. There’s no reason we couldn’t use 500-character passwords if we wanted. A handful of my passwords are over 1,000 characters.

    I’d reckon extreme length is much more effective for security than special characters. I’d reckon

    1TimewhenIwasatBandCamp,Istuckafluteinmyflutecase

    is significantly more secure than any password 8 characters in length for any aspiring flautist.

    • Gutek8134@lemmy.world
      link
      fedilink
      arrow-up
      32
      ·
      12 days ago

      If the password is hashed (it should), it’d always be the same length, and original’s length would only impact how long hashing would take

      • Pechente@feddit.org
        link
        fedilink
        arrow-up
        12
        ·
        12 days ago

        Exactly that’s why these limits are so stupid. Companies that limit passwords to only a few characters almost certainly have bad security practices.

        • needanke@feddit.org
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          12 days ago

          Limiting can make sense to avoid letting password attempts dos the server through hasing them for comparison. If you look at the extreme end, sha 512 hashing runs in quadratic time. There doubling the password length quadruples the compute needed to hash it l. So at some point you reach a reasonable cuttoff in a hashing-efficiency and password entropy tradeoff.

          In the real world you could see that in the context of the recent *sshhole bug: The libc library musl cuts off sha512 hashing at 256 byte inputs (could be as low as 64 chars in UTF8) for that exact purpose.

          https://git.musl-libc.org/cgit/musl/tree/src/misc/crypt_sha512.c?id=88bf5a8a8d7d796f63cca8589f4de67aa8345f1a#n189

    • lagg_mine@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      9 days ago

      If you hash a password it’ll be a couple dozen base64 characters. All hashes should be the same length.