10 ms·
OpenPGP in Rust: The Sequoia Project
- d33 6y ago...I really don't want to sound entitled, but while you're at it, could you please only keep the old CLI for compatibility purposes and come up with something that can actually be used? GPG's command line is second only to the one of openssl. And maybe git. It would really help adoption if usability was improved. Having an API instead of just CLI might also help (doesn't Enigmail just run the binary?)
- e12e 6y agoThere already is a gpg Api - gpg me (made easy): https://www.gnupg.org/related_software/gpgme/ https://www.gnupg.org/related_software/gpgme/ It would probably make sense to implement and expose that? Ed: see also https://wiki.gnupg.org/APIs https://wiki.gnupg.org/APIs
- deleted 6y ago[deleted]
- capitol_ 6y agoNo, this is not a very good suggestion. gpg-me just wraps the gpg binary and relies on a lot of global state, environmental variables for example. This makes the library really painful to use in multithreaded contexts, or when you need to have a controlled env. (like unit tests). I use gpg-me in one of my projects, and it's very far from pleasant to use.
- chromedev 6y agoHave you ever used tab auto-completion before? GPG's CLI is actually pretty intuitive and self-explanatory. You can also type: gpg --help Or, man gpg
- amluto 6y agoSecond to openssl? I would rank gpg as the worst by a considerable margin. Although, come to think of it, tex and its relatives (pdflatex, etc) have really quite terrible command line interfaces.
- R0b0t1 6y agoImporting and managing keys and encrypting messages is something I do via CLI because it is easier to do what I mean, not what some developer thinks I mean. The CLI is more expressive and I don't think to the detriment of usability. It's just for most people, they're not used to working with a tool that merges communication and text processing with a CLI interface.
- axaxs 6y agoI dunno, Openssl CLI is one hairy beast. To be honest I don't really know the best solution to such problems. Smaller, more specialized binaries? I mean, s_client is so vastly different than say, rsa.
- jcranmer 6y agoffmpeg is pretty nasty as well, and I don't have much fondness for ImageMagick's command line either.
- dgellow 6y agoThey are both old and really complex tools, that explains part of it.
- smichel17 6y agoAt least ffmpeg makes it easy to do the very easiest thing. I don't have to look up this one: ffmpeg -i input.file output.file Now, usually I want to do something more complicated, so I end up having to look it up, but it's hardly the ffmpeg folks' fault that audio and video encoding is such an ungodly mess of different containers and encodings; while it could be better, I think most of its complexity is inherent to the problems it's trying to solve. I do think there's an argument that it tries to do too much, and the complexity could be mitigated if it were split into several smaller tools and a wrapper for the most common commands, like apt.
- dane-pgp 6y agoThere is a proposal for a "stateless command-line interface for dealing with OpenPGP messages" that Daniel Kahn Gillmor brought to the IETF: https://datatracker.ietf.org/doc/html/draft-dkg-openpgp-stateless-cli-02 https://datatracker.ietf.org/doc/html/draft-dkg-openpgp-stat...
- digianarchist 6y agoLooks like it expired on September 7th. Does that mean it's not being considered?
- amenghra 6y agomkisofs wins the trophy imho.
- agumonkey 6y agoI think a good balance between ease and options would be important for a crypto tool. The nicer it is the more people will use it.
- mjw1007 6y agoYou can see the help for the proposed `sq` command line interface here: https://docs.sequoia-pgp.org/sq/index.html https://docs.sequoia-pgp.org/sq/index.html Thought the article says they're not planning to release this with v1.0
- mlindner 6y agoThe git command line is very good actually, and constantly improving.
- tptacek 6y agoAlternatively: https://github.com/str4d/rage https://github.com/str4d/rage
- upofadown 6y agoKind of lacks any sort of OpenPGP compatibility...
- seanieb 6y agoThats the point. PGP isn’t a good standard.
- upofadown 6y agoAge/Rage is not a standard at all. It is just a program. It definitely has nothing to do with a project intended to implement a particular standard. It is a non-sequitor here.
- pvg 6y agoPGP is a giant blob of byzantine implementation details and layers of accrued crust that people call a standard by convention and out of inertia.
- ifmpx 6y agoBeing a giant blob of byzantine implementation details and layers of accrued crust doesn't take away from PGP being a standard. Take a look at BMP or Postscript/PDF or even Email and tell me they're not the same. Parent's point still stands: PGP is a standard (with widespread adoption, mind you) whereas Age is not. Whether it is a good standard or not depends on how you're using it.
- pvg 6y agoThe parent's point was that age is 'just a program' and thus not a standard, with no mention of adoption. But PGP is arguably less of a standard than age, by that metric. As to adoption, PGP has very little adoption for actually securing anything (rather than performative use) and for those uses it's trivially replaceable because it's not actually good at them - that's pretty much the motivation behind things like 'age'.
- seanieb 6y agoWhy? PGP needs to be deprecated in favor of things like AGE and Magic Wormhole. https://github.com/FiloSottile/age https://github.com/FiloSottile/age
- anaganisk 6y agoMagic wormhole still doesn't have an easy way to run on windows, i have to download a 2.4GB VC Build tools with a shitty installer from Microsoft.
- psanford 6y agoThere's a Magic Wormhole implementation in Go that ships windows binaries: https://github.com/psanford/wormhole-william https://github.com/psanford/wormhole-william
- krick 6y agoIf PGP is actually a bad standard from the crypto point of view I can only wonder why people downvote this and insist on supporting garbage and even rewriting it in Rust. But I'm not educated in these matters, so: what's exactly the problem with PGP/Seqouia and why age/rage are better? Can all PGP usecases be covered by age?
- beefhash 6y agoage only covers authenticated encryption. minisign/signify covers the signing part. Everything else is either not used in practice or needs to be shifted to a dedicated protocol.
- LockAndLol 6y agoOnce there's a verified and tested v1 then you can start talking about deprecation. It's still beta software. Do you really think you're going to convince an enterprise or anything security critical by going "deprecate your battle-tested protocols and applications for this beta tool!". There isn't even an explanation on that page of why it was written, why it should (or could) replace OpenPGP, how to replace it ( a handy comparison table), and which use cases the tool is good for. It'd be really great if instead of pushing for change, you'd actually provide some context and explanation. Everybody can scream for change, few can understand (much less explain) the why and how. Maybe try and join the latter.
- upofadown 6y ago>Conceptually, Sequoia takes an identity-based approach to its public keyrings, where the keyring is designed to be "more like a per-domain address book than a PGP keyring." I think this is the future for encrypted messaging of all types. Ultimately the user needs some sort of conceptual model that will allow them to do reasonable things. Making the identity a thing in and of itself removes a lot of unneeded conceptual overhead. That is as opposed to the current practice of simply ignoring the identity issue and leaving the whole thing as a responsibility that the user has no idea of how to deal with.
- valenciarose 6y agoAll of my friends who work in crypto loathe PGP. None of them mention the implementation as their primary area of concern. Some of them mention the implementation as an unsurprising sequela to the kitchen sink of “capabilities” PGP attempts to cover. It has, by design, a nearly fractal surface area for users to compromise their security and for developers to make subtle implementation errors.
- brnt 6y agoI wish Autocrypt(.org) would be PGP's future. Zero conf, only syncing keys between devices is something you'd have to do manually. Those six trust levels, what were they smoking?
- ifmpx 6y agoThe fractal surface area of PGP is why it has continued to enjoy such widespread adoption. People need to secure their messages and other systems are far too ridged or specialized for their needs. Is PGP/GnuPG's horable to use or develop for? Absolutely. However, unless your friends are willing to step up and build something that's flexible enough to cover all our usecases, PGP will continue to see adoption and projects like this will continue to pop up.
- upofadown 6y agoIf you want to do store and forward messaging on a federated network then PGP is pretty much it. So if all those cryptographers don't like it then they should design something better. It is unlikely they will be able to come up with something simpler.
- anonymousse1234 6y agoAhh the unending saga of people too lazy to read some GPG man pages and proposing unfitting replacements. Long live GPG!