• General_EffortOP
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    16 hours ago

    To get right to the point, an example is encryption.

    When you encrypt/decrypt something, the time the algorithm needs depends on the length of the message and the length of the key. Addition, like 2+2, is also like that. To be quite correct, It is not that the problem is easy, but that the algorithm runs in a predictable amount of time (which can be computed with a polynomial formula).

    To break state of the art encryption, you can only use brute force, ie trying all possible keys. You could get lucky on the first try, or it might be the last possibility you try. The time required is non-deterministic.

    However, we don’t have proof that brute force is really the only way to break commonly used encryption. It is imaginable that there are algorithms that can break our encryption in a deterministic amount of time. It is even possible that this amount of time could be short. We’d really like to know one way or the other. You can see how it’s important …

    Mind that it’s not a given that P=NP means a problem for encryption, or that P!=NP means it is safe.

    • over_clox
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      You could get lucky on the first try, or it might be the last possibility you try.

      Interesting, as it’s always the last possibility you try regardless, unless you or your computer are insane.

      If you done found your TV remote, do you continue looking like a crazy person anyways? If you done found the code that unlocks the cipher/lock, do you keep going further?

      Nope, it’s always the last result…

      • granch_bibblyfibble@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 hours ago

        Except with Grover’s algorithm it’s not really the last value you try, since its trying all candidate values all at once. So in that realm, IIUC, it really isn’t stopping when you find the right one, its stopping when you have enough confidence to measure (and measuring breaks the setup, so you dont really want to stop too early)… I’m no expert, just interesting that maybe stopping when you find the last possibility doesn’t actually apply universally for all forms of algorithm and computation (?).

        • over_clox
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          Granted this example doesn’t properly represent modern day encryption, but…

          The video game, Lord Of The Rings, for the Super Nintendo Entertainment System (SNES) from 1994, did not have a battery backup savegame system, it had a 48 character keyscreen save of sorts that you’d have to write down yourself, only to manually punch back in later to continue from your save point. And it came with a checksum, I think it was CCITT 16 or something like that.

          Welp, I spent about 2 weeks dinking around with all that good jazz to mostly reverse engineer it. Hell, I even managed to find keycode sequences that even cancelled out the checksum field.

          What’s the code? 3P5

          Go ahead, repeat that code 8 times in the top field of the keycode field, you’ll start off basically maxed out with all characters (if not a little slightly glitched, as all characters aren’t meant to have all power flags active), but it just works, mostly…

          Am I gonna go back to find my TV remote/notes on all that? Nope, those files are lost to time. But…

          3P53P53P53P53P53P53P53P5

          Try it…