You are not logged in.

#1 2012-05-02 11:25:06

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

[Solved] gnupg - how to paste a password into a dialog window?

Hi all!

When you encrypt a file

gpg -c file

you are asked for a password which I can't figure out how to paste from a clipboard. I tried Shift+Ins, MouseMiddleButton - no luck. Tried it this way:

echo passphrase | gpg --passphrase-fd 0 -c file

and the password window still appears.

Searching Google gave me that GnuPG devs are not planning on implementing CLI option for entering password and I couldn't find how to paste it. What if I have 512-symbols passphrase? How am I going to type it in?

Last edited by Mr. Alex (2012-05-02 15:20:02)

Offline

#2 2012-05-02 15:01:48

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [Solved] gnupg - how to paste a password into a dialog window?

Make sure these are in your .gnupg/gpg-agent.conf:

# Keyboard control
no-grab
   
# PIN entry program
pinentry-program /usr/bin/pinentry-curses

I use this to paste in my passphrase for pacman gpg keys from keepassx and it works great -- on my server too so I can paste the passphrase into the terminal window.

Scott

Edit: I hope I understood your question correctly!!

Last edited by firecat53 (2012-05-02 15:07:14)

Offline

#3 2012-05-02 15:19:51

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] gnupg - how to paste a password into a dialog window?

Yes, thanks! I can paste from clipboard now.

Offline

Board footer

Powered by FluxBB