• raman_klogius@ani.social
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    10 天前

    IT devs who wrote oldpassword===newpassword checks should be tarred feathered hung drawn and quartered, in that order.

    • dou9m@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      10 天前

      Nah, use a password manager and stop using that garbage collection of characters you’ve used for over a decade.

      • raman_klogius@ani.social
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        10 天前

        Password managers don’t protect against passwords being stored in plaintext on the server side… Which my main comment implies.

        • ExtraMedicated@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 天前

          If I had to implement a same password check, I would simply check if the new password works to authenticate the user. If it doesn’t, then it’s different. There’s no reason or excuse to ever store plaintext passwords.

          • raman_klogius@ani.social
            link
            fedilink
            arrow-up
            1
            ·
            9 天前

            I’m no expert either but IIRC best practice is to use salting and hashing. basically together with your password is a long string of random characters generated by the site (the salt). the two are combined and put into a a cryptography hashing algorithm to give you a hash. the website only stores the salt and the hash. every time you log in you provide the password for the whole thing again and if the output hash matches the stored one then it knows your password is correct, without ever having to store it in any record.

    • sem@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      10 天前

      They should also fire the ones who make it so the correct password fails when you enter it.

    • T. Hex@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      8
      ·
      10 天前

      It legit pisses me off when a site has the gall to claim I forgot my password. My password manager did not forget!!