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
15.79k stars 477 forks source link

age subprocess unable to read ssh key password from terminal, when called from vim #418

Open mosh-hmi opened 2 years ago

mosh-hmi commented 2 years ago

Environment

What were you trying to do: call age from vim

vi file.age # age encrypted ssh,pem key (pasword protected) " vim command to decrypt input buffer with ssh.pem au BufReadPost *.age |:silent 1,$ ! age -d -i ssh.pem

What happened

vim launches age (and hangs), but there is no terminal to input password for ssh private key file, Other encryption tools when called from vim, will ask for password as needed in a separate terminal.

FiloSottile commented 2 years ago

Other encryption tools when called from vim, will ask for password as needed in a separate terminal.

What does the configuration to do that look like?