FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
16.83k stars 492 forks source link

Use pinentry if available #182

Closed y0ast closed 2 years ago

y0ast commented 3 years ago

rage has pinentry support: https://github.com/str4d/rage/pull/64

It would be great if age could have it too.

From yubikey-agent it seems that it can be done using: github.com/gopasspw/gopass/pkg/pinentry

https://github.com/FiloSottile/yubikey-agent/blob/4998d8c3d76cbfa97fd1af2953d8eea36ae290e8/main.go

FiloSottile commented 2 years ago

I've decided we won't provide alternative password input methods in cmd/age, but we'll ship them all in a separate plugin, like sshpass. I'll make sure to support pinentry there, and I'll update discussion #256 when it's ready. See https://github.com/FiloSottile/age/discussions/256#discussioncomment-2638232 for a bit more details.