Re: Automate GPG or PGP to make an .exe
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


sci.crypt archive

Re: Automate GPG or PGP to make an .exe

From: Unruh <unruh-spam@physics.ubc.ca>
Date: Wed Mar 29 2006 - 03:44:03 CEST

"crypt-o-time" <adamsd3@u.washington.edu> writes:

>I'm working on writing a batchfile to be run from the XP command
>prompt, to encrypt a file automatically. I need the encrypted file to
>be an executable, this way, the file can be opened by the appropriate
>user(s) with a shared password on any XP machine. For this reason, I've
>chosen symetric encryption with GPGShell or creating a Self-Decrypting
>Archive with PGP.

>One switch which works with GPGShell: GPGTools /encrsfx creates an
>.exe file with symetric encryption.

>Here's the problem:
>Running that command brings up a window that looks like this --
>You have to enter a one-time passphrase for symmetric encryption.
>Enter passphrase:

>Is there a way to add a password into the batch file so that the
>encryption process can be fully automated?

Why in the world would you encrypt it? Anyone could then run the file and
decrypt it. This is about the most useless use of cryptography I have heard
of.

>I've messed around with a few options, but haven't been able to get any
>to work without human intervention.

I would hope not. I think you need to go back and think about what you
want.

>--passphrase-fd and PGPPASSFD
>look promising. Does anyone have some advice on this?
Received on Mon May 1 01:53:00 2006