RE: [PHP] Crypt() =or= md5()

From: Date: Tue, 24 Sep 2002 14:54:22 +0000
Subject: RE: [PHP] Crypt() =or= md5()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117422@lists.php.net to get a copy of this message
Anthony Ritter <mailto:tony@gonefishingguideservice.com> scribbled; > > I get the following line when trying to use the crypt() function in > php ...................................... > > Fatal error: Call to undefined function: crypt() in c:\program > files\apache group\apache\htdocs\handleform1.php on line 16 > > ........................................ http://www.php.net/manual/en/function.crypt.php First part of description: "crypt() will return an encrypted string using the standard Unix DES-based encryption algorithm or alternative algorithms that may be available on the system." You need crypt on Windows, good luck. Most liekly crypt() is just disabled for Win32 port. > > However, when I replace crypt() with md5() - the following script > works fine. > [...] > MD5 is just a hash, not encryption. I'm guessing this one is built into PHP. Read yourself: http://www.php.net/manual/en/function.md5.php

« previous php.general (#117422) next »