I was recently intrigued to learn that only half of the respondents to a survey said that they used disk encryption. Android, iOS, macOS, and Windows have been increasingly using encryption by default. On the other hand, while most Linux installers I’ve encountered include the option to encrypt, it is not selected by default.

Whether it’s a test bench, beater laptop, NAS, or daily driver, I encrypt for peace of mind. Whatever I end up doing on my machines, I can be pretty confident my data won’t end up in the wrong hands if the drive is stolen or lost and can be erased by simply overwriting the LUKS header. Recovering from an unbootable state or copying files out from an encrypted boot drive only takes a couple more commands compared to an unencrypted setup.

But that’s just me and I’m curious to hear what other reasons to encrypt or not to encrypt are out there.

  • setVeryLoud(true);@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    21 hours ago

    You’re an idiot, go back to macOS you fucking normie

    (/s, I’m also waiting for TPM encryption + user home encryption)

    • data1701d (He/Him)@startrek.website
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 hours ago

      Clevis pretty much does TPM encryption and is in most distros’ repos. I use it on my Thinkpad. It would be nice if it had a GUI to set it up; more distros should have this as a default option.

      You do have to have an unencrypted boot partition, but the issues with this can at least in be mitigated with PCR registers, which I need to set up.

      • jollyrogue@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        How hard is clevis to setup?

        I’ve seen it referenced for encrypted servers, but I haven’t tried setting it up.

        Unencrypted boot is unfortunate. What are PCR registers?

        • data1701d (He/Him)@startrek.website
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          (Note: Anything I say could be B.S. I could be completely misunderstanding this.)

          Clevis isn’t too difficult to set up - Arch Wiki documents the process really well. I’ve found it works better with dracut that mkinitcpio.

          As for PCR registers (which I haven’t set up yet but should), what I can tell, it sets the hash of the boot partition and UEFI settings in the TPM PCR register so it can check for tampering on the unencrypted boot partition and refuse to give the decryption keys if it does. That way, someone can’t doctor your boot partition and say, put the keys on a flash drive - I think they’d have to totally lobotomize your machine’s hardware to do it, which only someone who has both stolen your device and has the means/budget to do that would do.

          You do need to make sure these registers are updated every kernel update, or else you’ll have to manually enter the LUKS password the next boot and update it then. I’m wondering if there’s a hook I can set up where every time the boot partition is updated, it updates PCR registers.