3 ms·
I believe "gpg -c" remains a better idea than encrypted zip files and "openssl enc" due to better defaults/ciphers/kdf. The article mentions magic wormhole, bu
by tyingq 8y ago
I believe "gpg -c" remains a better idea than encrypted zip files and "openssl enc" due to better defaults/ciphers/kdf.
The article mentions magic wormhole, but sometimes you need plain old symmetric file encryption with a password.
- tptacek 8y agoYes, PGP is better than the Bass-o-matic ZIP cipher many implementations of ZIP use. PGP clears that very, very low bar.
- tyingq 8y agoI did mention "openssl enc" as well. Is there some other common bundled utility I missed? Or it's not useful to compare what's at hand? Not sure I'm getting the message behind the jab.
- tptacek 8y ago"openssl enc" requires you to select from over 105 different cipher constructions, virtually all of which are terribly insecure.
- deleted 8y ago[deleted]
- tyingq 8y agoOkay, so "gpg -c" is better than other commonly installed command line tools for encrypting a file with password?
- tptacek 8y agoPGP, 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.
- bmn__ 8y agoWell, what is better? You're the expert, why aren't you telling us outright?
- deleted 8y ago[deleted]
- xorcist 8y agoNo, 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.
- DanBC 8y ago> Your files won't be compromised. ...if you use it correctly. It appears that many people can't do this.
- xorcist 8y agoNo, 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.
- tyingq 8y agoInteresting 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?
- e12e 8y ago... And the secure constructs like aes gcm/aex are unavailable on the command line - only usable as library functions.