News for hackers. Stuff that matters.
Re:Modern Alternatives to PGP by tptacek on Friday February 15, 2019 @07:40PM (#19176166)
"openssl enc" requires you to select from over 105 different cipher constructions, virtually all of which are terribly insecure.
Re:Modern Alternatives to PGP by tyingq on Friday February 15, 2019 @08:11PM (#19176312)
Okay, so "gpg -c" is better than other commonly installed command line tools for encrypting a file with password?
Re:Modern Alternatives to PGP by tptacek on Friday February 15, 2019 @11:12PM (#19177020)
PGP, which is something you have to explicitly install, is a badly flawed way to encrypt files; it has a poor password KDF and you should look at how it authenticates data.

Install something better.

Re:Modern Alternatives to PGP by tyingq on Saturday February 16, 2019 @07:40AM (#19178333)
"PGP, which is something you have to explicitly install"

Gnupg is a default package for Ubuntu[1], so not always.

"Install something better"

That's a bit mysterious. Various Google searches don't suggest anything obvious.

[1] See http://releases.ubuntu.com/bionic/ubuntu-18.04.2-live-server... ctrl-f, search for gnupg

Re:Modern Alternatives to PGP by bmn__ on Saturday February 16, 2019 @02:39AM (#19177577)
Well, what is better? You're the expert, why aren't you telling us outright?
Re:Modern Alternatives to PGP by xorcist on Saturday February 16, 2019 @04:48AM (#19177935)
No, it's not "badly flawed". Your files won't be compromised.

GnuPG could do with better defaults, but that is true for every system good enough to have aged. A more modern KDF would also be welcome but it won't impact end user security. Just to put things in perspective.

Re:Modern Alternatives to PGP by DanBC on Saturday February 16, 2019 @04:50AM (#19177941)
> Your files won't be compromised.

...if you use it correctly. It appears that many people can't do this.

Re:Modern Alternatives to PGP by xorcist on Saturday February 16, 2019 @09:01AM (#19178572)
No, that's the point. For long term encrypted storage, GnuPG is one of few options and perfectly good best practice.

Telling users that it's broken without pointing to a clear alternative is counter productive as they are likely to end up much worse.

A more modern KDF would be welcome, but it is also important to communicate the benefit to an end user: You get comparable security with a shorter password. There are other things to consider when choosing an encrypted file format.

Re:Modern Alternatives to PGP by tyingq on Saturday February 16, 2019 @11:00AM (#19179172)
Interesting that the comment above is off-and-on turning grey.

It's pragmatic, informative, and highlights that bashing gpg for this specific use case, without naming something better...is arguably worse than saying nothing.

Why downvote it instead of just naming a better choice? What's the big secret?

Re:Modern Alternatives to PGP by tptacek on Saturday February 16, 2019 @11:31AM (#19179352)
I downvoted it for making the unhinged argument that a poor KDF is a feature because it encourages users to select better passwords.

I downvote lots of things. On Hacker News, we're explicitly encouraged to downvote disagreement, especially when verbalizing that disagreement will just clutter up the thread. Everyone gets downvoted. I've been downvoted all over this thread. You were just downvoted a minute ago.

The one thing we're not supposed to do is complain about downvoting. That's in the guidelines for the site.

Re:Modern Alternatives to PGP by tyingq on Saturday February 16, 2019 @11:56AM (#19179509)
"making the unhinged argument that a poor KDF is a feature because it encourages users to select better passwords."

Where does it say that? It says a better kdf would improve the security of shorter passwords. I don't see anything that suggests a poor kdf is a feature.

The kdf used for "gpg -c" also seems better than "openssh enc". And we've still not heard what the reasonable alternative is for symmetric/password file encryption is. So, I'm sticking with gpg for that use case.

Re:Modern Alternatives to PGP by tptacek on Saturday February 16, 2019 @12:08PM (#19179560)
I think you're right, and that I misread the comment. I fixed my vote. Thanks! See! The system works!
Re:Modern Alternatives to PGP by e12e on Saturday February 16, 2019 @10:28AM (#19178976)
... And the secure constructs like aes gcm/aex are unavailable on the command line - only usable as library functions.