Re: [PHP] Signing Files with PGP

2001-12-20 Thread Jon Farmer

The -z option allows you to pass the passphrase on the command line


--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key

- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Thursday, December 20, 2001 2:37 PM
Subject: Re: [PHP] Signing Files with PGP


> * J.Mueller, pro.vider.de GmbH ([EMAIL PROTECTED]) [Dec 20. 2001
04:17]:
>
> > Hello List,
>
> Howdy..
>
> > I try to setup a script which automatically
> > signs a file with PGP.
>
> [...]
>
> > When I use something like
>
> > $command="/usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt";
> > exec("$command",$answer);
>
> > obviously nothing is happening cause the pass phrase was
> > not given.
>
> One way is to use popen() to execute the command and fputs() to write
> out the passphrase.
>
> <http://download.php.net/manual/en/function.popen.php>
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> Variables won't constants aren't.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Signing Files with PGP

2001-12-20 Thread Brian Clark

* J.Mueller, pro.vider.de GmbH ([EMAIL PROTECTED]) [Dec 20. 2001 04:17]:

> Hello List,

Howdy..

> I try to setup a script which automatically 
> signs a file with PGP.

[...]

> When I use something like

> $command="/usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt";
> exec("$command",$answer);

> obviously nothing is happening cause the pass phrase was
> not given.

One way is to use popen() to execute the command and fputs() to write 
out the passphrase.



-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Variables won't constants aren't.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Signing Files with PGP

2001-12-20 Thread J.Mueller, pro.vider.de GmbH

Hello List,

I try to setup a script which automatically 
signs a file with PGP.

With the system command this looks like that:

 % /usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt
 A private key is required to make a signature.
 Need a pass phrase to decrypt private key:
 1024 bits, Key ID F593ED45, Created 2001-12-14
 "Juergen Mueller <[EMAIL PROTECTED]>"
 Enter pass phrase: 
 Pass phrase is good.
 Creating output file test1.sig
 % 

Now the thing is how can I implement the pass phrase into
PHP so that the command is being done?

When I use something like

$command="/usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt";
exec("$command",$answer);

obviously nothing is happening cause the pass phrase was
not given.

Thanks.
Juergen




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]