Some Bits: Nelson's log

Simple Unix file encryption

I want to password encrypt some Unix files. In the very old days you’d have used crypt(1) for this, but that’s deprecated now because the algorithm is junk. So many tools are deprecated now. The key thing is I need a simple tool that I can likely get working again in 10, 20 years. Also I want a file encryption tool, something that manages timestamps and deleting old versions and stuff.

I settled on using ccrypt. I don’t love that its on SourceForge but it was at least updated in the last couple of years, and the underlying cipher is good. Ubuntu 20 has it. One drawback is that it doesn’t compress files first, you’re on your own to do that.

Some other options:

  • mcrypt: the consensus choice for a crypt(1) replacement for a long time. Supports multiple algorithms. But it hasn’t been updated in 10+ years and is considered my many to be obsolete.
  • bcrypt: I used this for years, and it still works, but Ubuntu 20 stopped distributing it entirely. Still works when compiled from source. Not sure if the algorithm is still considered secure.
  • gpg: I’m not positive this has a symmetric file encryption mode but even if it does GPG has been such a hairball for so long, forget it.
  • openssl: apparently there’s a way to use this to encrypt files? No thanks.
  • zip: the original zip encryption algorithm is garbage, but various zip versions have replaced it. I don’t know there’s a standard one though.
  • 7z, rar, other archivers: same concerns as zip about being solid encryption and yet also being standard / stable.