News for hackers. Stuff that matters.
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by flurie on Monday September 06, 2021 @03:35PM (#28437130)
Has anyone managed to replace file encryption using gpg or sops with age for anything other than simple use cases? I realize age doesn't cover the breadth of scope of the other two, but it doesn't seem like those gaps are being filled by anything else, either.
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by cpach on Monday September 06, 2021 @03:57PM (#28437366)
What is it that you’re missing?
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by aborsy on Monday September 06, 2021 @05:14PM (#28438170)
Not OP, but I am missing:

* password store (Pass)

* hardware key support

* back up software using Age (as with duplicity)

* integration into operating systems (cross platform)

* integration into apps

* Mobile support

* command line for key management (maybe), to help me organize and rotate keys, and maybe share public keys

* An agent?

* robust positive review or audit (security people need to review the source code independently), or a long history of good security

Mount would be great too!

Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by psanford on Monday September 06, 2021 @07:58PM (#28439403)
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by wolf550e on Monday September 06, 2021 @05:55PM (#28438530)
hardware key support exists: https://github.com/str4d/age-plugin-yubikey
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by upofadown on Monday September 06, 2021 @06:56PM (#28439027)
Correct me if I am wrong, but that doesn't seem to do the decryption on the yubikey itself. So the Yubikey wouldn't act as a portable air gapped system as in the case of, say, GPG.
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by FiloSottile on Monday September 06, 2021 @08:32PM (#28439586)
It decrypts the per-file symmetric key on the YubiKey, the same way the PGP applet works.
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by upofadown on Tuesday September 07, 2021 @08:38AM (#28443951)
I think the important point when GPG uses something like a Yubikey as a portable air gapped system is that the private key is kept exclusively on the device and is normally not even available to the owner of that key. That implies that the asymmetric encryption is done on the device as well.
Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by str4d on Tuesday September 07, 2021 @01:02PM (#28447125)
The same thing happens with age-plugin-yubikey. You can only generate identities on the device (so you never have access to the private key), and the YubiKey needs to be plugged in and available in order to decrypt, as the core asymmetric decryption operation occurs on the YubiKey. (You don't need the YubiKey to _encrypt_, just the recipient string).

The way this is set up in the plugin protocol, the age client provides the age header to the plugin, along with any identities the user has asked to decrypt with, and the plugin returns any file keys it is able to decrypt. The process of taking the per-recipient encrypted blobs in the header and extracting file keys, is entirely up to the plugin. This falls nicely out of the way the age format's "one joint" is designed: the file is encrypted with one symmetric key, and that key is encrypted separately to each recipient via whatever mechanism their type requires.

If you squint through the layers upon layers of packet complexity, this is the same way GPG encryption operates [0]: the data is symmetrically encrypted with a random session key, and that session key is asymmetrically encrypted to each recipient. Only the asymmetric decryption part happens on-device for GPG; the symmetric part happens on the computer.

[0] https://datatracker.ietf.org/doc/html/rfc4880#section-2.1

Re:Show HN: Age 1.0 – Simple, modern and secure file encryption by flurie on Monday September 06, 2021 @07:24PM (#28439218)
This is a great list. I also use sops because it has symmetric key support for a great many systems, allowing me to use gpg and aws kms for one set of secrets.