Are there any good tools for "one-off" file encryption?
Sorry if this is a silly question, but I keep running into situations where a small CLI or GUI tool that could be handed a single file and hand me back an encrypted version would be useful. I've done some googling, but all I typically turn up is blogspam about random Windows-only tools that seem to be of dubious quality.
Anyone know of a good tool for this type of thing?
Age is what I would recommend today.
It's similar to GPG in that it provides both symmetric and asymmetric encryption, but is a lot simpler and uses more modern cryptography.
Came here to post this. Please don't use GPG and use age instead
Equally Saltpack is rather neat.
My favorite tool when it comes to encrypting files one shot is an encrypted zip file, often through 7zip. It's cross platform, condenses a bunch of files easily, and looks indistinguishable to a normal zip until you try to open it, so it doesn't raise any flags.
Albeit a Linux specific tool, KDE has a really neat tool called Vault that I think creates a virtual folder wherever, and transparently decrypts and encrypts anything dropped in it or pulled out. I've never used it myself since I have full disk encryption, but it seems really useful and just the trick if you use it on a laptop with an unencrypted drive for instance.
I've enjoyed GPG4Win and the Kleopatra utility that I believe is bundled with it. It's literally drag-and-drop and is glossy enough for me.
EDIT: Obviously GPG4Win is for Windows but Kleopatra has a Linux version, and that's the important part.
I currently use these functions (they could easily be scripts, too...). (Usage:
encrypt file=> removes
decrypt file.encdoes the reverse.)
Also these, which may or may not be relevant to your use-case:
GPG is what I hear more but you could use 7z or KeepassXC.
You may want something like this? https://wiki.archlinux.org/index.php/GnuPG#Symmetric
You could try aescrypt (https://www.aescrypt.com/). I used it in the past for exactly this