16 ms·
Modern Alternatives to PGP
- tptacek 8y agoThe context for this is this Go project proposal: https://github.com/golang/go/issues/30141 https://github.com/golang/go/issues/30141 Filippo proposes to deprecate (but not remove) Blowfish, archaic curves, CAST, MD4, RIPEMD160, TEA, Twofish, XTS, and OpenPGP from the Golang x/ libraries (which are "officially supported" but not part of the standard library. It's really heartening to see a project get serious about shedding legacy crypto.
- drenvuk 8y agoAll of you are using pgp wrong, emails are a crap way to use it. It's not your fault, it was meant to be used that way. There's a better way to use it though.
- tedunangst 8y agoYou're holding it wrong.
- drenvuk 8y agoIf holding the iphone 4 correctly could cure cancer then that metaphor would be correct. I'll take the current downvotes and back it up later when I release my project.
- michaelmrose 8y agoI want a peer to peer communication not beholden to a particular provider where I can optionally host myself where I can communicate to most people in the US. It would be optimal if I could communicate with people privately but being able to communicate with them at all is the primary point. What should I use instead of email.
- drenvuk 8y agoThere is literally no good answer on the market yet.
- deleted 8y ago[deleted]
- Quekid5 8y agoIs OpenPGP considered 'legacy'? If so, why? I was under the impression that it's mostly that it's really hart to reliably support e.g. calling 'gnupg' (cmdline), gpgme (library), etc.? ISTR there was a company that's re-implementing the OpenPGP standard from scratch in a library-oriented-fashion, but for the life of me I can't remember their name... I don't disagree with the 'drop legacy' stance, btw, I'm just interested in what exactly the issue is.
- tptacek 8y agoYes, as the article says, it's a 1990s-style ultra-configurable do-everything design which, in practice, almost always gets deployed in a lowest-common-denominator set of constructions that are themselves mired in 1990s crypto. No modern cryptographic engineer looking at any problem PGP solves would design a system that looked like PGP. PGP used to make some sense as a simple at-rest storage format, but in the era of Nacl and libsodium, even that use case is a poor fit.
- Quekid5 8y agoFair enough, I suppose. I'm not sure it's just me being behind the times, but it seems that quite a few of the ideas behind PGP (specifically: asymmetric encryption) aren't really being exploited seriously. Instead there's lots of halfhearted "oh, let's just encrypt thing X with a password stored in thing Y" where Y is presumably more 'secure'. This is a bit of a tangent, but I find it interesting and depressing that industry has learned very little, if anything.
- tptacek 8y agoThis article explicitly points out modern alternatives to PGP's clunky, 1990s implementation of asymmetric encryption. But, tangentially, it's a bad idea to use asymmetric encryption when you don't absolutely need it. Modern symmetric AEAD ciphers, which are implicated in pretty much all serious public-key designs anyways, are safer to use that asymmetric cryptography. Seeing a public key in a design that doesn't demand public keys is a cryptographic engineering code smell.
- heyjudy 8y agoShedding? Why? The point of supporting "legacy" crypto is batteries-included and for many instances where it's vital for backwards interoperability. Makes me glad I left Go because the populist noobs have definitely taken over and ruined it with their toxic, myopic, fashionablism ideas.
- shittyadmin 8y agoI'm not so sure this is a great idea, quite commonly when reverse engineering something I need a good reliable implementation of a dated cipher. MD4 is still used in NTLM, RIPEMD160 is still used in Bitcoin and other cryptocurrencies, etc. Systems exist outside of the Go ecosystem and not all systems are new. Compatibility is important. It's great to flag these as not recommend for new designs, but it's quite another to remove them entirely and prevent people from easily implementing compatible software. Seems more like something that should be in the documentation or spit a compiler warning if that isn't deemed loud enough. MD5 is similarly broken but I'm assuming they don't want to remove it because it's still quite popular in some use cases - what exactly is their standard for that popularity?
- tedunangst 8y agoHow is it possible for so many people to read the words "not remove" as "remove entirely"?
- MrStonedOne 8y agodeprecate is assumed to be followed by removal, doing one will lead to the other 99% of the time.
- tptacek 8y agoThey should remove these things, but they won't.
- deleted 8y ago[deleted]
- rwilson4 8y agoShort, to-the-point, and I wasn't familiar with any of these options! Love it!
- davidcollantes 8y agoFor the userland, there was only two tools on the post that allows signing. How will handle file encryption?
- zokier 8y agoThe article does mention saltpack, discussion about it here: https://news.ycombinator.com/item?id=14067003 https://news.ycombinator.com/item?id=14067003
- resoluteteeth 8y agoThis looks nice and it supports multiple recipients which was the first question that popped into my head.
- kenforthewin 8y agoThanks for this. The format of original need to modern alternative is particularly useful.
- bertman 8y ago> No one was sending you encrypted emails anyway,... Ouch, the unfortunate truth.
- jandrese 8y agoThe only encrypted mail I get is from Facebook. It drives me crazy that nobody else bothers to put a "enter your public key here" field. It seems like it should be super easy to implement, but Facebook is literally the only company that I've ever seen do it.
- davidcollantes 8y agoCould you elaborate? I don't use Facebook.
- nicky0 8y agoIn Facebook's settings you can paste a PGP public key. Notification emails sent to you by Facebook will then be encrypted using that key.
- davidcollantes 8y agoInteresting! Thanks for the explanation.
- nicky0 8y agoAnother useful feature is you can opt to have the same key publicly displayed on your Faceook profile page.
- rubbsdecvik 8y agoFacebook has a field in your profile settings that you can upload your public key. The purpose is to encrypt the email notifications they send to you.
- heavenlyblue 8y ago
- pera 8y agoAs far as I can tell none of these "alternatives" implement what is at least for me the most interesting feature of PGP: web of trust and key servers. It would be really nice to see a modern take on this. > No one was sending you encrypted emails anyway I actually use PGP for e-mailing quite often, for instance: how am I supposed to report security issues without gpg? (please don't suggest Whatsapp...)
- sneakernets 8y agoAnyone suggesting anything owned by Facebook as an alternative to Pretty Good Privacy should be ignored.
- NelsonMinar 8y agoKeybase is one version of a modern take on Web of Trust. https://keybase.io/ https://keybase.io/
- diafygi 8y agoKeybase is centralized. The GPG keyserver pool is a decentralized gossip network of volunteer servers (I run one). https://sks-keyservers.net/status/ https://sks-keyservers.net/status/
- WorldMaker 8y agoDepends on what you think of their Blockchain/Merkle tree work, though. The attestation chain that Keybase uses is a public merkle tree, and though currently built to be centrally signed, at the root level, still has some built in decentralized redundancy at the user/client level. Interesting gray areas between easy determinations of whether or not something is centralized/decentralized or now. https://keybase.io/docs/server_security https://keybase.io/docs/server_security
- eridius 8y agoKeybase is a centralized service but AIUI you don't need to actually trust the centralized Keybase service because all the actual validation is performed client-side (i.e. verifying all the proofs that the people you follow have posted) and all of the changes people make to their profiles are publicly published as a chain that is then periodically embedded into the Bitcoin blockchain. As long as you're ok with relying on the keybase service being reachable and functional, trust is still decentralized and verifiable.
- blabla321 8y agoOn look here is another shiny tool! ...honestly, our industry needs to change
- sigil 8y agoI've been using minisign, signify, and ed25519 on a project and they're minimal but wonderful. They're fast, they have small key and signature sizes, and I found it way easier to integrate the reference ed25519 implementation into my project than say libgpgme or OpenSSL. Ted Unangst of OpenBSD gave a nice talk on the design of signify: http://www.openbsd.org/papers/bsdcan-signify.html http://www.openbsd.org/papers/bsdcan-signify.html The OpenBSD use case is quite limited and doesn't require PKI, so you won't find web of trust, keyservers, or anything like that. It would be awesome to have minimal solutions to those problems as well though. Anyone aware of attempts?
- AnaniasAnanas 8y ago> one-time-use combinations of three English words I really don't think that this is secure. > nacl/box and nacl/secretbox Both of which use XSalsa20 - which while not broken there should be no reason to use it rather than (X)Chacha20.
- tptacek 8y agoYou're wrong. Magic Wormhole is fine, and so is XSalsa. XChacha is barely even a thing; Bernstein formalized extended-nonce Salsa20, but not Chacha20.
- tedunangst 8y agoXchacha is used in a corner of WireGuard, fwiw.
- bjoli 8y agoWireguard, libsodium, go's crypto libraries and Google's Tink have all implemented xchacha20-poly1305. I would not say that it's not a thing, but I would probably wait at least until the ietf process is over before using it.
- tptacek 8y agoI know it exists, and I don't think there's anything wrong with it. It's just weird to demand that everyone use it, since, as I said, it's barely a thing.
- AnaniasAnanas 8y agoUsing "one-time-use combinations of three English words" is "fine" only if your definition of "fine" includes allowing someone with a minimal budget to find out the password in less than a year. I am seriously wondering under what definition this could be considered better than OpenPGP. XSalsa20 is indeed fine, but XChaCha20 is better in every way. The proof for XSalsa20 provided by Bernstein applies to XChaCha20 as well.
- 8y ago
- dpc_pw 8y agoWhat is missing is hardware keys support. :(
- red_admiral 8y agominisign I can support - I use it myself. For encrypting small data blobs, nacl/[secret]box is fine but as the description says it's for small blobs. If you want to store a large encrypted blob on a USB key as a backup, less so. I personally use enchive (https://github.com/skeeto/enchive https://github.com/skeeto/enchive) for that, it's like the encryption counterpart to minisign and in my opinion it really should be on the list.
- jedisct1 8y agoMinisign's counterpart for encryption is encpipe (https://github.com/jedisct1/encpipe https://github.com/jedisct1/encpipe).
- athenot 8y agoThere's also S/MIME for sending emails, which is supported by many email clients. Of course this assumes you are fine with the chain of trust that ends with Certificate Authorites, but this is no different that HTTPS.
- fanf2 8y agoI need a command-line tool that does public key encryption of a few KB of data with an ASCII-armored file format. For convenient auditing, it needs to be non-repudiable, and easy to find out which keys can decrypt. As far as I could see, the closest this article gets is saltpack, but that is an unstable alpha, and it does not appear to have a command line interface. So no, this is not a modern alternative to PGP for my use case :-(
- eikenberry 8y agoNo mention of an agent. One of the nice features of GPG/PGP is gpg-agent which lets me use GPG without having to type in a passphrase every time.
- heyjudy 8y agoIt also replaces ssh-agent. I also use monkeysphere to store SSH keys in GPG. It's a far better solution than ssh keys lying around requiring management.
- bogomipz 8y agoInteresting, can you what are the benefits of using gpg-agent over ssh-agent for managing ssh keys?
- eikenberry 8y agoNothing other than not needing ssh agent so it saves resources by not needing 2 agents. The gpg-agent takes care of both.
- lucb1e 8y ago> No one was sending you encrypted emails anyway Guess what! Since I moved to Germany (from the Netherlands), I noticed that people send a lot of encrypted mail. Not random Germans, sure, but where in the Netherlands the security and broader hacker community was hard to convince, in Germany it's quite widespread. My colleagues (security firm) and friendly security firms (when we collaborate) expect nothing less, and even customers supporting it is not rare (it was very rare (like, one customer in dozens) when I worked in NL). It depends on your peers whether you find PGP is usable or not, it seems. Then again, in Germany quite a few websites used OpenStreetMap before it was cool^W^W google raised their prices, and Linux is also more widespread. I wonder what it's caused by and how we can encourage it, since I think we (HN) would generally consider those things to be good, at least for fellow hackers, even if the tech has some edges too rough for the general population.
- ForHackernews 8y ago> I wonder what it's caused by and how we can encourage it Probably because many Germans have a relatively recent memory of the Stasi in the DDR.
- lucb1e 8y agoThe Dutch probably do to a similar extent. We were quite involved in the war, unfortunately, and burning records to avoid involving jews/romas/homos/etc. But yeah it's the only thing I can think of as well. I still can't pinpoint what argument it is that they are implicitly taught that we aren't.
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- g45y45 8y agoA problem I have run into with x25519 and ed25519 is that in Nacl, both use different public key 'formats'. While they are the same curve, you cannot use an x25519 for signing (ed25519 only) and you cannot use an ed25519 for encryption. PGP allows binding encryption and signing keys together in a profile. So far I have not been able to 'bind' an ed25519/x25519 key in a similar configuration.
- g45y45 8y agoMy point is that you need to roll your own cryptosystem, whereas PGP, for all its flaws, is a working, IND-CCA2 secure cryptosystem (provided you use the correct primitives). This whole blog is justification for removing PGP from Golang stdlib. I dont agree with Valsorda deprecating this.
- justincormack 8y agoIt is not recommended to use any keys for more than one purpose any more, this can allow attacks. So this is by design.
- teddyh 8y agoEveryone should be aware of two tools distributed as part of GnuPG: 1. “gpgv”, a stand-alone minimal binary to only verify PGP signatures. https://gnupg.org/documentation/manuals/gnupg/gpgv.html#gpgv https://gnupg.org/documentation/manuals/gnupg/gpgv.html#gpgv 2. “symcryptrun” – simple symmetric encryption tool: https://gnupg.org/documentation/manuals/gnupg/symcryptrun.html#symcryptrun https://gnupg.org/documentation/manuals/gnupg/symcryptrun.ht...
- helper 8y agoIts interesting that pass[1] uses GPG and was created by the author of wireguard, Jason Donenfeld. I wounder if he would build it differently if he were starting today? I feel like the one thing that keeps me from abandoning GPG completely is the general lack of smartcard support in any other system. Are there any examples of using yubikeys to store your libsodium keys? [1]: https://www.passwordstore.org/ https://www.passwordstore.org/
- Boulth 8y ago> Are there any examples of using yubikeys to store your libsodium keys? I doubt it. Yubikey doesn't just store private keys in flash memory, they are using tamper resistant element. And only a couple of algorithms are supported.
- jwr 8y agoOne starts looking at things differently as years pass. I've been working with computers for >25 years now, and I've learned that long-term thinking is important. Remember '.bz' files that were all the rage? Yeah. Bzip1, not '.bz2'. Good luck trying to read that. For my data, I will stick to things that have been around for a long time and that are likely to stay. Those fancy 'nacl/box' thingies? I'm willing to make a bet that they won't be around in 5 years time. As to PGP, it is hard to understand, so people don't use it and are not interested in developing it. Which is a shame, we could all use more good end-to-end encryption. I also find this article rather funny, as I'm happily encrypting/decrypting data with OpenPGP, using the agent to authenticate to my SSH servers, and keep my keys securely on a YubiKey. I do hope these "modern alternatives" have good answers for storing my keys on a YubiKey, because otherwise the whole thing isn't really worth the effort.
- blattimwind 8y ago> Those fancy 'nacl/box' thingies? I'm willing to make a bet that they won't be around in 5 years time. crypto_box is Curve25519 + XSalsa20-Poly1305.
- wrs 8y agoThose fancy box thingies are very well specified and fit into 100 tweets worth of public domain ANSI C with no dependencies. If you want your format to last 100 years, I’m not sure how to ensure it better than that. https://tweetnacl.cr.yp.to/ https://tweetnacl.cr.yp.to/
- eropple 8y agoYup--unless you think future you isn't going to be able to lay hands on a C compiler, you can literally tuck a copy of it alongside all your backups forever and ever anon.
- eropple 8y agoHm. So you think that libsodium is going to dry up and disappear from the internet in "5 years' time"? Bear in mind that its first GitHub import was in 2013 and that it is used, and supported, by lil' guys like...uh...lemme look at this..."Google". While it's drying up and disappearing, is it going to take with it things like rbnacl which both use it transitively, package it for their environments, and also have some pretty great documentation on how it works? Is it going to take with it the public definitions of Curve25519 and XSalsa20+Poly1305? Are we going to get all neuralyzed and just...lose it? Look, I'm no security wonk. I have some interest in it, but that's it. And even I realize that libsodium as a thing you can use if you need to will probably outlive both you and I. Also, FWIW, it took me literally one Google search to find a bzip decompressor. I did have to read a page first, though.
- Jeaye 8y agoWhat about signing my git commits to prove I authored them? As far as I know, no alternative exists for GPG there. If it did, we'd need also tools like Github to support it before it's adopted. I do see GPG being replaced in so many areas, so I'm not opposing the OP. Just saying that I use it for signing commits every day and my engineering team is required to sign all commits; Github helps us enforce this by requiring that PRs contain only signed commits.
- gaius_baltar 8y agoSome problems PGP (these days, this means GnuPG) solves pretty well for me: - offline encryption; - distributed web of trust; - digital signature (for messages and software packages); - batch processing; - certification of other users without a server at all; - ability to use a completely "offline" infrastructure; - sending messages without revealing the actual recipient (i.e. --hidden-recipient) - multiplatform; - easy to integrate in another applications and scripts; - allowing independent encryption, signature and certification keys but using them together (i.e. I receive an encrypted message that was signed with a key certified by another key. The system must correctly detect and use the certification-only key already in my keystore); - allows copying and pasting the data (messages, keys, etc.) in an email; - open source and well tested implementations; - not forcing me to use it in a mobile phone; - for god sake, not being an Electron app! - ideally, all this in a single package. People keep distilling an irrational hate on OpenPGP but their proposals can't handle all these use cases. Of course, they handle some small subset very well, but none covers all of them (e.g. Signal does pretty good when I need to exchange short mobile messages, but it is of no help when I need to push a few 30 MB files from my mobile phone to GDrive without giving Google all their contents).
- tptacek 8y agoOf your list, the alternatives that George provided check off: - offline encryption - digital signatures - batch processing - no server - offline infrastructure - "hidden recipient" (which, ironically, is a command line flag to mitigate a flaw in PGP, and not in fact a feature of PGP) - multiplatform - easy to integrate - copying and pasting ciphertext - open source and well-tested - not bound to phones - not being an electron app The things you don't get with these alternatives are flaws, not features, like "all being in one application". You're making George's case for him. I'd recommend reading his article again, and then following the links.
- pera 8y ago> The things you don't get with these alternatives are flaws, not features, like "all being in one application". I believe what the parent likes about "all in a single package" is the practicality and simplicity that this brings to the user: you could either just install gpg and read the man, or review tens of different relatively new applications (none of them widely used, yet) for each step of your normal workflow, learning their different interfaces and quirks, and then keeping yourself updated of any new disclosed vulnerability that may affect your custom crypto tool set. Obviously a small application that only do one thing hopefully right should be, at least in principle, easier to maintain and audit (and therefor safer) than the ol' swiss army knife of cryptographic communications, but the convenience of all-in-one is also a reality that shouldn't be overlooked.
- kazinator 8y ago> The "modern alternative" is to use a much more specific and much less configurable solution to your problem. The problem is you're replacing one configurable, flexible thing, with N different specific solutions involving multiple obscure little utilities. Oops! How can this blogger not see that this isn't better. How about a modern alternative to git? Instead of one hydra with so many heads, why not use scp for transferring repositories (not git push), cp -r for saving snapshots of versions (not git commit), diff -urNp for calculating differences (not git diff), patch -p1 < ... for applying deltas, not git rebase ... You know: specific solutions that do one thing, instead of one big, confusing mess.
- tptacek 8y agoBecause it is better. You don't get sound cryptosystems from configurable, flexible things; flexibility is the mortal enemy of cryptographic soundness. That's how "this blogger" "not see" that this isn't better. This isn't some fringe belief among hipster cryptography engineers (among which I'm sure George counts himself). You can read it straight out of _Cryptography Engineering_.
- throwaway415415 8y agostill, from a dev perspective it's not always clear what tool to use for the task. That's a lot of bike shedding for something that shouldn't be a problem in the first place: email or whatever communication system we will use in 20 years needs to have encryption baked in by default. Storing and sharing data safely need to be a first class feature of all OS and browsers.
- tptacek 8y agoWhat's the term of art for bikeshedding something so long that you give up and opt for a solution that is materially worse than all the bikeshedded options? Because that's what you're doing when you debate cryptography and give up and use OpenPGP.
- 8y ago
- jrochkind1 8y agoA side issue, but: > It generates those passwords for you, and they're short, one-time-use combinations of three English words If an attacker knows the tool does this, doesn't this reduce the keyspace to crack to (number of words in an English dictionary)*3? Is that enough? Am I missing something? A very complete dictionary has around 170K words, let's generously assume the password generator is willing to use all of them, many that will be unfamiliar and cumbersomely large to an actual native English speaker. So 510K in the keyspace, around 19 bits of "key". Maybe that's enough?
- m45t3r 8y agoIt is not multiplication, it is permutation (170k!). I don't know how big this number is, however it is pretty big. This technic even has a name: diceware [1]. [1]: https://en.m.wikipedia.org/wiki/Diceware https://en.m.wikipedia.org/wiki/Diceware
- m45t3r 8y agoSorry, not factorial either. More like 170k(170k - 1)(170k - 2). Generally I see people using Diceware with more than 3 words too (at least 4 or 5). However if the file does not need NSA levels of security 3 words seems fine.
- zeveb 8y ago> 170k(170k - 1)(170k - 2) Which is 4,912,913,300,340,000 ≈ 2^52. Fifty-two bits of entropy is pretty horrible for anything that you really care about: you want at least 128.
- AnaniasAnanas 8y agoIt's around 2^52 keys, which is pretty bad.
- AgentME 8y agoRight, a 52-bit key would be terrible for symmetric encryption. But that's not what Wormhole does. It uses PAKE, which is an interactive protocol that allows two parties that both know a short password to securely come up with a longer key for symmetric encryption.
- arisAlexis 8y agowhy do we need "modern" alternatives for something that works?
- kingofhdds 8y agoSo author offers to replace PGP for sending files with a piece of software which requires to send/say a password to your recipient? Oh yeah, that's smart, and very modern!
- tptacek 8y agoIt is indeed. Magic Wormhole implements a PAKE to individually encrypt and authenticate a secure channel without requiring any other root of trust. It's exceptionally easy to use and secure.
- lixtra 8y agoMagic Wormhole looks neat and I can imagine using it. But apparently it requires: - both parties to be online at the same time - have access to a secured channel to transfer the secret - Transfer a new autogenerated secret for each file transfer. PGP lets you: - verify the key once - re-use the key - the key be submitted through a public channel - the verification be done in a public (though tamper proof) channel or by web of trust - the file be stored in transit, no need for online But obviously, if the complaint is that pgp is too complex, then each single tool to replace some functionality doesn’t cover the whole spectrum.
- throwaway415415 8y agoThis. If you share a temporary password through another secure channel, you can probably just share a symmetric key and then you don't need PAKE anymore. In some cases though, you might want to send yourself something from one device to the other, or you are talking to someone who's not really technical on the phone. About being online at the same time, I was under the impression that this wasn't a requirememt.
- lotharrr 8y ago(author of magic-wormhole here) To transfer a file, both parties do need to be online at the same time. The server (which I run) does not store the file's data: it stores tiny key-exchange messages until both sides manage to make a direct connection, but then the encrypted file data is sent from sender to recipient without being stored in the middle. So it doesn't replace email or an FTP server or some other asynchronous file-transfer service. You're absolutely right that if you already have a secure channel, you can send a full-strength symmetric key that way (e.g. send a PGP key, or one of the alternatives in gtank's post). But PAKE enables using a low-bandwidth secure channel. I can easily read a magic-wormhole code like "4-purple-sausages" to someone over the phone or to the person sitting next to me, but I'd be hard pressed to dictate an entire 256-bit secret key correctly.
- daosyn 8y agowhat about keybase? it is an attempt to basically make pgp more user-friendly and approachable
- ggm 8y agoThe modern alternative to PGP is GPG. Or, PGP. The implication that a tool like MH (or PGP) "needs" a modern alternative probably deserves to be questioned. There are nits, and there are problems, but GPGMail plugins for mail mostly work as well as anything else which is an accretion. My corporate mail is using X.509 client certificates. LDAP (which is basically X.500-- so naturally fits X.509 information model) makes it work. We all grow a long tail of past certificates to make sure we can unpack our own p7m data. I don't think we ever solved how untrusted people come into trust without some form of painful mediation. The dream of the Quipu X.500 global directory remains...
- mikegerwitz 8y agoI don't need "modern alternatives" to things that aren't broken. I'm not interested in replacing my one tool with N others when I understand my threat model and understand the benefits of my existing, battle-tested tooling. The opening paragraph is off-putting: > Did your last Yubikey just break? Is this supposed to imply that I'm not supposed to be inconvenienced by my security token breaking? Of course I am. I've lost and misplaced my Nitrokey on numerous occasions, leaving me completely locked out of my systems without physical access. That's a feature, and that's intended. > Perhaps you forgot an offline backup password. What does that have to do with PGP? > Maybe you're just tired of living like a spy and never using smartphones. That absolutely has nothing to do with PGP. > Linux distributions and many other software update mechanisms use PGP signatures to prevent malicious mirrors or network attackers from altering the contents of their packages. GnuPG's use here is hidden from the user by the package manager. Most users have no idea it's using PGP, and don't understand what it is. They work through a package manager's abstractions. If you replaced PGP with something else, the user would likely be none the wiser. Why does it matter? Also, why do I want to abandon a keyring? For manually verifying signatures: why does the weight of the tool matter? Is `gpgv' (which is probably already installed on your system) really weighing you down that much? Tools like signify emphasize keysize and speed compared to RSA. Do you _really_ notice as a user? Is that _really_ the bottleneck for what you're doing? It might be, but I suspect for your average user, it's not. > I wrote one as a party trick last month – it's less than 200 lines of code and that includes some silly key parsing tricks. Are we worried about attack surface? GPG is heavily audited---you're far more likely to be pwned through one of the 100s of other poorly audited programs on your computer. And in any case, I don't care how easy it is to write---leave the crypto to the experts. An easy-to-understand implementation is great and certainly preferred where possible, but that's only part of the battle. And tools like GnuPG already have their implementations written and audited by numerous parties over the years. That doesn't mean they're bug-free, but it's not like we're starting from scratch here. > Original need: You want to store individual pieces of data without making their contents accessible to anyone else on your system. I'm not arguing against the use of other programs, but I see nothing wrong with GnuPG (or PGP) for this. Again, it's a widely supported tool that's probably already available on your system, and it probably came with your distribution image, so it probably can also be trusted. Directing users to install programs is a risk in its own unless it can be authenticated through the distribution's package manager---users must understand how to verify the program themselves otherwise. Using GnuPG also gives you some other benefits for free, like support for a smartcard, even over SSH. (You should generally prefer symmetric algorithms for long-term secrets, but if you know your threat model, or have secrets that are easily changed or don't need to stay secret long term, asymmetric may be a fine choice for you if you gain the benefit of a security token.) > Original need: You have files that you want to send to another person, but you don't want the data to be visible in transit or stored in the cloud. For this, folks often attach an encrypted ZIP file to an email. > Modern alternative: magic-wormhole. This works out great (or a tool like OnionShare) if it actually addresses your problem. But what if I want to encrypt files to N people who may be online at different times, and store that file somewhere? What if I _do_ actually want to communicate over email? I happen to do most of my communication with online communities via email. PGP does suffer from many legitimate issues, like forward secrecy. Certainly use the right tool for the job. I'm not going to use PGP as an alternative to OMEMO, for example---they're fundamentally different. Things that certain people see as weaknesses, like logistical issues surrounding the establishment and maintenance of a web of trust, aren't weaknesses to others. I have no problem with people suggesting useful tools for certain tasks. But I'm frustrated by the FUD around PGP, as if it's insufficient for any job. It does work, it is battle-tested, and it is trusted.
- lvs 8y agoThis article's basic argument is that the modern alternative to PGP (GPG) is not to do any of the things PGP is used for. How modern!
- lolikoisuru 8y ago> Signatures for OS or package updates > lack state or any notion of a keyring And thus being completely useless for the purpose. This is quite a fundamental misunderstanding of the use case.
- dooglius 8y agoOne problem I see is network effects. If you use some relatively obscure encryption scheme, then it is possible for an adversary to de-anonymize you by knowing that you are one of a small group of people who use that encryption scheme.
- jedisct1 8y agoFor securely sharing data online, you may also want to consider Piknik https://github.com/jedisct1/piknik https://github.com/jedisct1/piknik
- fishywang 8y agoMaybe I'm missing something here but I'm not sure how nacl/box and nacl/secretbox can replace openpgp in the pass use case. Yes nacl/box and nacl/secretbox can handle the encryption and decryption part of pass, but how do they handle the key management part? With pass+openpgp, I have my key-pair, while the private key was protected by a strong passphrase, everytime I use pass it asks me for the passphrase to unlock my private key, then it's done. With nacl/box, I need to generate a random key-pair, and then how do I securely store the private key? Maybe I use the nacl/secretbox to encrypt it and store as a file in my computer? But the key part of nacl/secretbox is a fixed-size [32]byte, so that limits how long my passphrase can be? There's also a fixed-size [24]byte nonce, how do I store that in my computer? Maybe I should just combine them to get a [56]byte as the passphrase? That may or may not be long enough as I would like it to be.
- bored_12 8y agoThe problem for me in these alternatives is how little they take into account the users. Teaching people to use GPG has been hard enough, and now, with his proposal, for everything they do, they have to learn a new tool. Want to encrypt a file? Please, find, install, configure this tool. Want to sign something? Please, find, install, configure this tool. And many of these modern tools does not seem to have a nice UI which users can use. If these are only tools to be run on a terminal, then 'non-tech' users will not use them. And what worries me is that many of this modern alternatives have not have had sufficient crypto analysis or analysis in general. GPG is not perfect; but at least it has had analysis.