How to send passphrase to gpg with symetric encryption?
Sat Nov 9 16:16:02 2002
This might be the solution:
echo 1234 >1
echo "1234" >2
will all give different files in dos, (tested on win98 dos, compared
the output with a hexeditor) where unix and linux will trim
the echo, dos won't do that.
So your command should be:
"echo 1234| gpg etc"
"echo 1234 | gpg etc"
(hope i helped you get rid of the more insecure situation)
On Tue, Oct 22, 2002 at 09:11:15AM +0200, Thomas Braun wrote:
> > On Thu Oct 17 2002; 14:44, Thomas Braun wrote:
> >> @ECHO OFF
> >> del test.gpg
> >> ECHO 1234 | gpg -c -v -v --cipher-algo BLOWFISH --passphrase-fd 0 test.txt
> > Hmm, for me it works. Maybe the shell adds a newline character to the
> > echo and this means the passphrase is *not* 1234 but 1234\n. I guess
> > it's the standard Windows behave of ECHO.
> Most likely you are right.
> I tried various possible things and found the following to be working:
> I put the passphrase into pass.txt and changed the batch to the
> TYPE pass.txt | gpg -c --passphrase-fd 0 test.txt
> I'm aware that this is not a very secure solution but I'm only
> experimenting at the moment because I'm not sure how to pass the
> passphrase to gpg from a program that is used in a web application.
> Thomas Braun
> Gnupg-users mailing list