• @Steve
    link
    English
    14
    edit-2
    3 months ago

    The difference is, you literally never give the private key to anyone. Nobody will ever ask for it.

    It works through public private key encryption. To login the site will send your computer a “challenge” (some kind of math problem) that’s first encrypted with your public key. That means only your private key will be able to decrypt the challenge. Then your machine will generate an answer, encrypt it with the private key and sent that back. If the public key decrypts the answer and it matches, they know you are you.

    • @4am@lemm.ee
      link
      fedilink
      English
      03 months ago

      “Websites ask me for it every time I visit them bro 🤪”

      • @IHawkMike@lemmy.world
        link
        fedilink
        English
        83 months ago

        Except they don’t. They may request a passkey which is just an oversimplification about what is going on behind the scenes, with information being passed back and forth as Steve described.

        But the private key never leaves the device. This is such a huge distinction that is easy to overlook. But it is very, very important.

        • @4am@lemm.ee
          link
          fedilink
          English
          32 months ago

          I guess my sarcasm needed the /s; was just mocking people who would try to retort with some half brained comment like that.

          Of course passkeys are better and more secure, I’m 100% on board with them.

          • @IHawkMike@lemmy.world
            link
            fedilink
            English
            22 months ago

            Haha fair enough. I should have known from the quotes. It is something I hear a lot from people who don’t know the difference, and I’m sure you do too.