1

I am working about a GUI PGP application with Zenity. GPG asks passphrase on terminal screen. But I want to enter passphrase from a GUI dialog box not in terminal (like zenity --password) I tried piping gpg -c <file_name> with Zenity command but not working. Is there any solution for this or another program feature? I know Kleopatra, GPA and seahorse by the way.

Thanks...

2 Answers2

1

Thanks dave_thompson_085. I tried echo "123" | gpg --batch --yes --passphrase-fd 0 --cipher-algo AES256 -c $FILE and it works.

0

For those who are still struggling:

You can change the pinentry-mode (~/.gnupg/gpg.conf) to ask and you'll always get the GUI prompt to enter the password (unless the passphrase is saved).

This is useful for various IDEs like Intellij.

Config file entry:

# your previous options
pinentry-mode ask