• 0x0@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 days ago

    Sure, bring back Crowdstrike, that went well…

    Btw I wasn’t aware XOR was encrytion…

    • Neverclear@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 days ago

      XOR cleartext once with a key you get ciphertext. XOR the ciphertext with the same key you get the original cleartext. At its core this is the way the old DES cipher works.

      A bit of useful trivia: If you XOR any number with itself, you get all zeros. You can see this in practice when an assembly programmer XOR’s a register with itself to clear it out.

      • Malfeasant@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        7 days ago

        an x86 assembly programmer

        Ftfy. not all CPUs have an xor register with itself instruction.

        • Q*Bert Reynolds@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 days ago

          There are a lot more architectures than just x86 that are capable of XORing a register with itself (ie. ARM and RISC-V), and if you took OP to mean the accumulation register specifically, pretty much all CPUs going back as far as I can think have had that functionality.