• mogranja@lemmy.eco.br
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I hate when websites have some weird rules for passwords, and show the rule when you are creating the password, but not when entering it. How am I supposed to remember the password must begin and end with a special character?

    • furry toaster@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago

      and when the rule is also wrong example: password must contain special charcters

      the password in question contained : and ^

      if those aren’t special characters idk what is

      • sus@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        maybe they were looking for extra special characters like 🁄 or ⶸ. Who am I kidding, RFC 1738 tells us that literally everything is unsafe and you know, we need to prepare for the inevitable occasion when the password somehow ends up inside an URL.

        The characters “<” and “>” are unsafe because they are used as the delimiters around URLs in free text;
        the quote mark (“”") is used to delimit URLs in some systems.
        The character “#” is unsafe
        The character “%” is unsafe

        It ends up with

        Thus, only alphanumerics, the special characters
        $ - _ . + ! * ’ ( ) ,
        are safe

            • planish@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              5 months ago

              In terms of the transport, sure.

              But if you put the password in a URL, the user’s browser is going to turn around and store that plaintext password in its history, then sync it to the user’s other devices, and then pop it up on their screen in the address bar autocomplete, perhaps when the user is screen sharing or streaming to hundreds of people. The browser does not expect a password to be stored there and will mishandle it.