gpg: Go ahead and type your message

Ryan Sawhill ryan at
Mon Sep 23 15:31:33 CEST 2013

Robert is correct that the usual way people run gpg is by passing it
input via a pipe or from a file; however, what you're aiming for is
totally doable. The missing piece you need is the keyboard shortcut:
Ctrl-d, e.g.:

[rsaw:~]$ gpg -ac
Enter passphrase:
Repeat passphrase:
Here is where I started typing my message...
<I pressed Ctrl-d here>
Version: GnuPG v1.4.14 (GNU/Linux)


On Sun, Sep 22, 2013 at 10:57 AM, Len Cooley <len.cooley at> wrote:
> I'm sure this has been a topic of inquiry many times, but I can't seem to
> find useful information about it. I haven't used gpg command line for a long
> time (I actually haven't used gpg much at all in the past few years, as I've
> had a Windows machine, and I just don't trust the OS), but I have gpg on my
> android phone. It utilizes the terminal. When I type in gpg (return) I get
> the message that I placed in the subject line. I'm not really sure what I do
> at that point. If I use Ctrl C, the program terminates. If I hit CtrlZ, I
> think it suspends the program (but I'm not sure).
> Would/could I use this area to type a text message that I would then,
> subsequently, encrypt/sign/save? If so, where could I find a set of basic
> commands to use with this (what appears to be) text editor?
> If this isn't what it's intended for, what's it for? Thanks for bearing with
> me.
> --
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at

More information about the Gnupg-users mailing list