News for hackers. Stuff that matters.
Re:Using GPG to Encrypt Your Data by RJIb8RBYxzAMX9u on Thursday January 12, 2017 @09:37PM (#13387992)
Unless compatibility with gpg is a requirement, I think scrypt[0] is a much simpler tool for file encryption. The utility is meant to showcase the KDF of the same name. It's very simple and has virtually no parameters. So:

  $ xz -k elrond_minutes.txt
  $ scrypt enc elrond_minutes.txt.xz elrond_minutes.txt.xz.enc
  $ signify -S \
      -s vilya.key \
      -m elrond_minutes.txt.xz.enc \
      -x elrond_minutes.txt.xz.enc.sig
  $ rm elrond_minutes.txt{,.xz}
Signing the final output is probably extraneous; I think scrypt uses a HMAC. This involves invoking multiple tools, but since each tool only does one thing it's much easier to reason about, and I prefer this over using an omnibus tool like gpg.

[0] https://github.com/Tarsnap/scrypt

Re:Using GPG to Encrypt Your Data by agumonkey on Thursday January 12, 2017 @10:09PM (#13388104)
My paranoid self wanted to replace rm with shred.
Re:Using GPG to Encrypt Your Data by twr on Thursday January 12, 2017 @11:41PM (#13388441)
You can just pipe xz instead, although you may want to shred the original file:

  xz < file | scrypt enc - > file.xz.enc
And I agree: scrypt (the program) is much better for password encrypting documents. It is only a few thousand lines of readable code; it uses modern algorithm choices (scrypt, AES256-CTR, HMAC-SHA256), with no alternatives; there isn't any configuration involved; and it's written by a respected author.
Re:Using GPG to Encrypt Your Data by RJIb8RBYxzAMX9u on Thursday January 12, 2017 @11:48PM (#13388474)
shred is ineffective if you're using a CoW FS, and probably less effective on a journaling FS, and those probably covers 99% of all the FS people use today. Just use FDE.