TIP: Click on subject to list as thread! ANSI
echo: public_keys
to: WILFRED VAN VELZEN
from: AUGUST ABOLINS
date: 2020-01-07 18:44:00
subject: gpg `live` editor

Hello Wilfred!

** 07.01.20 - 22:04, Wilfred van Velzen wrote to August Abolins:


 WvV>But you just meant the 'gpg' command line util.

Correct.  Pure gpg.exe


 AA>> I start to type my message, but there is no obvious way to save it.

 WvV>That's right. You have to tell it on the command line with the correct
 WvV>options and commands what it needs to do with what you type.

Update:  I *can* dump the contents of my clipboard in that area.  But how  
do I save the results and start the encryption process?

If gpg.exe is allowed without initial arguments/options, I am surprised  
that it runs at all.


 AA>> Nope.  The gpg editor does not dump the contents that I have in
 AA>> clipboard.

My mistake. Corrected above.  Right-click-Paste dumps the clipboard into  
the live editor window.


 WvV>It's what you tell cmd.exe to do with what's in the clipboard... Stop
 WvV>calling it the 'gpg editor'! It's not an editor. It's a command line util
 WvV>that gets its input from "stdin" that's provided to it by the shell
 WvV>(cmd.exe) it's running in.

OK, I get that.  But I launch gpg.exe, it runs and is "Waiting for input".  
It does not fail. It sits there waiting for the message content. Fine.  
Then, how do I finish that process?

If it expects all parameters/arguments at the command-line, then I am  
surprised that it runs at all.  If using it without arguments makes not  
sense then I would expect it to issue a warning and exit immediately.


 WvV>I can have it do something interactively without using input or output
 WvV>files. (But it's not a "live editor"! ;))

It behaves like a very basic editor.  Backspace works.  Insert works. IT  
continues a "message line" until I press enter. Then, I can continue on  
another line.

 WvV>For instance:

 WvV>wilfred@wilnux5:~> gpg -sea -r 'August Abolins'

Noted.

 WvV>Use this key anyway? (y/N) y
 WvV>Hi how are you doing?

OK. I started gpg with -->C:\gpg -sea -r wilfred

Then I got the key prompt like above.
Then I start typing a message.

But how do I tell the program I am done?

When I perform a ^d, it just sits there.

I don't know how to trigger the prompt for a passphrase.


 WvV>After the message about the passphrase, I get a seperate window to enter
 WvV>my passphrase. And I typed a ^d, after my "How are you doing?" line, to
 WvV>end my input (to the shell it's running in).

I guess I need to see someone doing it.

I know how to use gpg with pre-written message files, and produce armoured  
output files.  But I want to understand why the live, type as you go  
method does not work for me.


  ../|ug

--- OpenXP 5.0.42
* Origin: Key ID = 0x5789589B (2:221/1.58)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.