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 dave_thompson_085. I tried echo "123" | gpg --batch --yes --passphrase-fd 0 --cipher-algo AES256 -c $FILE and it works.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.