Live data from Hacker News

Modern Alternatives to PGP

blog.gtank.cc

61–70 of 261 posts

Re: Modern Alternatives to PGP

#61
Everyone 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

2. “symcryptrun” – simple symmetric encryption tool: https://gnupg.org/documentation/manuals/gnupg/symcryptrun.ht...

Re: Modern Alternatives to PGP

#62

No 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.

It 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.

Re: Modern Alternatives to PGP

#63
post #41

Earlier quoted context omitted.

I feel like this is asking past the point. Without a web of trust, how are you securely signing? You can go with somewhat centralized trust, but that only gets you do far. Or, rather, that forces everyone to deal with that centralized source. Much like the web of trust.

If you own a domain and have a webserver running ssl you can distribute your public key in a secure manner. What situations are you encountering in 2019 where you really need a distributed web of trust?

> If you own a domain and have a webserver running ssl you can distribute your public key in a secure manner.

That means that I'd be trusting GUANG DONG CERTIFICATE AUTHORITY and every other CA not to issue a fraudulent certificate against my domain. I don't think that's very secure.

Re: Modern Alternatives to PGP

#64
post #55

A 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.

How hard is it to cat two keys together in a profile?

Re: Modern Alternatives to PGP

#65
post #47

> 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…

> 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.

The 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.

Re: Modern Alternatives to PGP

#66
post #34

Earlier quoted context omitted.

Keybase is one version of a modern take on Web of Trust. https://keybase.io/

Keybase is centralized. The GPG keyserver pool is a decentralized gossip network of volunteer servers (I run one). https://sks-keyservers.net/status/

Keybase 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.

Re: Modern Alternatives to PGP

#67
Its 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/

Re: Modern Alternatives to PGP

#68
post #55

A 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.

It is not recommended to use any keys for more than one purpose any more, this can allow attacks. So this is by design.

Right, but how does one bind the keys if they do not mutually support encryption or signing

Re: Modern Alternatives to PGP

#69
post #55

A 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.

How hard is it to cat two keys together in a profile?

binding needs more than a simple cat. You want to wrap them together somehow

Re: Modern Alternatives to PGP

#70
post #58
post #56

Earlier quoted context omitted.

My 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.

Its never been part of the stdlib, its part of x/crypto. They also aren't going to remove it, just deprecate it.

My mistake, i thought x/crypto was part of the stdlib.
Post reply on HN