How to send passphrase to gpg with symetric encryption?

5468696A6D656E thijmen@xs4all.nl
Tue Oct 22 11:20:02 2002


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
> [snipped]
> > 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.
> 
> 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.

If that is your goal, don't mind the insecure situation in the batch files,
what about the insecure situation that people need to store their secret
key on a *webserver* ? Are people willing to do that?

Th.

-- 
__Thijmen Klok________