� Assimilation | Main | Firefighters, Statuary & Hero Making �

May 11, 2001

Crypt on Win32

ok in order to work around the security problem running on win32 (for lack of a crypt module in php4) use the following lines of code to shell out to perl. // mbowen 2001.05.10
function encode($encode_str, $salt) {
// this replaces $cryptString = crypt($plainString, $salt);
$command = "d:\perl\perl -e \"print crypt('$plainString', '$salt');\"";
$cryptString = exec($command);
return $cryptString;
}

crypt() is called from user.php i don't know where else from...

Posted by mbowen at May 11, 2001 07:44 PM

Trackback Pings

TrackBack URL for this entry:
http://www.visioncircle.org/mt/mt-tb.cgi/3492