jpohjolainen / atom-gpg

5 stars 7 forks source link

Private key prompt at decryption #7

Open SoGCuicui opened 7 years ago

SoGCuicui commented 7 years ago

Hi,

It would be great if we could have a prompt for private key decryption when we need to decipher or sign some text... Is it possible with your GnuPG solution? For now, I have an error from 'gpg' telling me that no passwords are given...

I would also appreciate a "no selection" encryption method, that is, if no text is selected, then encryption / decryption / signature should occur on the entire current document. It would save a ctrl+A! What do you think about it?

Thanks!

galenasphaug commented 7 years ago

I feel like adding a prompt for a private key would be relatively complicated. The no-selection encryption sounds like a great and fairly simple addition.

messis-fin commented 7 years ago

New version 0.5.0 released with no-selection meaning whole file/buffer.

I will look into the passphrase prompt.

messis-fin commented 7 years ago

I have test this in some other than Mac. In Mac I get box asking the passphrase from gpg-agent/MacGPG suite.

galenasphaug commented 7 years ago

I'll clone this and try it on windows 7/ ubuntu.

On Sat, Sep 16, 2017 at 10:03 Janne Pohjolainen notifications@github.com wrote:

I have test this in some other than Mac. In Mac I get box asking the passphrase from gpg-agent/MacGPG suite.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jpohjolainen/atom-gpg/issues/7#issuecomment-329981244, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJrQMdDoz2gdS45E5W_pF1jwVBYRAsZks5si_9rgaJpZM4MiaHF .

jpohjolainen commented 7 years ago

I don't know is there any pinentry programs in Windows, but in Mac the MacGPG installs one and it is used for asking the passphrase. Also in Linux you can have it asking the passphrase when you launch gpg-agent with "--pinentry-program /usr/bin/pinentry-x11".