Derick Rethans wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Mon, 5 Feb 2001, John Donagher wrote:
> 
> >
> > I've been considering starting work on a GPG extension for PHP, similar to the
> > Perl GPG interface (http://gpg.sourceforge.net). Anyone working on this
> > already?
> 
> I think this would be a very nice extension...
> 
> I was on OSDEM last weekend and heard about some library version of
> GPG, or some wrappers around it. I think it would be wise that if you
> start on this, you'll check these things out. It would clearly make this
> more easy to do.
> 

The library version of gpg, is the gpgme library, I created php bindings
around it a while back, but it worked so crappy (many bugs) that I
abandoned using it.  The gpgme library also does nothing but fork a
processor to gpg and collect the results.  Currently, Werner (GPG
creator) has separated GPG into a library (libgcrypt) and the gpg
program itself, however, this library only provides basic encryption
functionality, much of the gpg work would have to be simulated.

Therefore, what I've done before is just use popen() or backticks to
interact with GPG.  I think, for now (until libgcrypt comes of age, so
to say) the best thing to do would be to just make this a pear class
(written with PHP) instead of an extension.

If you have any questions on how to do that, you can check out the
source of the perl extension, or feel free to ask me :)

-Sterling

-- 
PHP Development 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]

Reply via email to