Re: encrypt and decrypt in standard PHP

From: Date: Sat, 24 Feb 2001 01:16:37 +0000
Subject: Re: encrypt and decrypt in standard PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41413@lists.php.net to get a copy of this message
You could use popen() to execute http://gnupg.org or PGP... It would be easier to recompile PHP, though, and performance on popen() is going to suck. You *might* be able to compile just the encryption module, and use dl("mcrypt.so") in your PHP script to load it up rather than recompile all of PHP, but again, it's going to be harder, and performance will suffer. Compiling PHP the *second* time is *way* easier than the first time, especially if you've saved your previous PHP source tree and all the other source trees -- There's a file in the PHP source tree called config.status, and some other config.* files, that "remember" what you did last time. So, copy those somewhere safe, and then look at them. You'll probably be able to copy config.status to config.zhu, and then edit that to add --with-mcrypt (or whatever it is), and do: chmod 755 config.zhu ./config.zhu -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Zhu George-CZZ010 <George.Z.Zhu@motorola.com> Newsgroups: php.general Sent: Friday, February 23, 2001 11:07 AM Subject: [PHP] encrypt and decrypt in standard PHP > As the PHP manual indicates, we can use Mcrypt to do the encrypt and decrypt work in PHP, but that needs to download the encrypt module and recompile PHP. Is there any other way to encrypt and decrypt the string in standard PHP4.0.4 without any extension module? > > Thank you very much! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#41413) next »