You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some keys that require a passphrase to be set.
What is the correct way to pass the passphrase for encryption? I saw some solutions to pipe it to and the passphrase-fd to STDIN or setting the passphrase globally for the gpg-agent.
piping the passphrase seems to not work as we already pipe in the data to encrypt and also have the gpg command hard coded.
I am opening this issue as I would add the information to the readme or some documentation - assuming more people have the same questions.
The text was updated successfully, but these errors were encountered:
bumi
changed the title
How to pass the passphrase for encryption
How to pass the passphrase for encryption?
Dec 14, 2016
It's been a while since I've actively done this, but yeah in the past I've used the --passphrase-fd option.
The link above shows using passphrase via 0 (stdin). You probably want to use a file descriptor > 2, here is an example that should get you going in the right direction.
I have some keys that require a passphrase to be set.
What is the correct way to pass the passphrase for encryption? I saw some solutions to pipe it to and the passphrase-fd to STDIN or setting the passphrase globally for the gpg-agent.
piping the passphrase seems to not work as we already pipe in the data to encrypt and also have the gpg command hard coded.
I am opening this issue as I would add the information to the readme or some documentation - assuming more people have the same questions.
The text was updated successfully, but these errors were encountered: