Mailing List Archive

Is this supposed to happen?
Is this supposed to happen?


ayoub@vboxpwfl:~/testdir$ ls

textfile  textfile.dcr  textfile.gpg
ayoub@vboxpwfl:~/testdir$ gpg -r sentry -e
?^?z?OI?@l??{
             ?3?7???\C?Wa??$1?Y?
                                ?E2??%0[??:???h????
???k?l???
         %
??]?yB????????}???^C
gpg: signal Interrupt caught ... exiting

ayoub@vboxpwfl:~/testdir$


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Is this supposed to happen? [ In reply to ]
On Fri, 17 Jul 2020 09:17, Ayoub Misherghi said:
> Is this supposed to happen?

Yes.

As almost all Unix tools, gpg defaults to take input from stdin and
writes output to stdout. Because you did not use --armor the output is
binary and messes up your tty. The reason why already get some output
despite that you have nothing typed in yet (stdin is per default the
current tty) is due to buffering: gpg already outputs the OpenPGP header
data (encrypted session key) and now waits for the actual data to show
up at stdin.


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.