Page MenuHome GnuPG

GPA - clipboard encryption - use textmode
Open, NormalPublic

Description

When encrypting the text from the "Clipboard" (oh, what a name! Shouldn't it be
called ANYTHING else to prevent confusing it with the clipboard? Our followers
coming from PGP would be confused, because PGP actually has an option to encrypt
the real system clipboard!) the text is encrypted in such a manner that when
decrypted on other systems (say Windows), the line endings are messed up.

gpg has a "-t" option specifically for text encryption, to deal with this issue.
(At least when encrypted with this option, PGP for Windows does show line
endings correctly.) Since we know that "Clipboard" definitely contains nothing
other than text, it should be safe to use it when encrypting "Clipboard". Or at
least I believe we should be given an option to do so, which I have not seen
(correct me if I was not looking well enough). And I still believe it should be
enabled by default - for "Clipboard" only.

Details

Version
all

Related Objects

Event Timeline

werner renamed this task from GPA - clipboard encryption to GPA - clipboard encryption - use textmode.Apr 8 2016, 9:38 AM

The use of --textmode is in general not a good idea. The GPA on Windows will work just fine regardless of line endings. Notepad.exe also does not care about line endings as does other proper text handling software. If there is a problem c+p from the GPA "clipboard" do the system clipboard we can fix that.

werner claimed this task.

We stopped maintaining GPA in favor of Kleopatra.

werner raised the priority of this task from Wishlist to Normal.

Or maybe not. I just did 0.11.0 (T7449) and will do more releases if there is demand for it or we have collected enough patches.

  • Shall "clipboard" be renamed to "notepad"?
  • Shall we add a button to copy to/from the system clipboard? Shall this the automagically decrypt? For security reasons encrypting shall always be done in the "notepad" and require an explicit copy to the system clipboard.