faqts : Computers : Programming : Languages : PHP : Installation and Setup : Operating Systems : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 26 people (69%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Does crypt() work under Windows NT?

Jan 20th, 2000 00:28
Nathan Wallace, Ignatius Teo, amdur, Kristian Holdich


No.

This is because php shells out to the unix crypt command when it sees
crypt in a script, and NT doesn't have that command available. 

http://www.php.net/manual/function.crypt.php3

There are some fairly simple encryption algorithms knocking about.
For a perl implementation have a look at:
 
http://www.dcs.ex.ac.uk/~aba/rsa/

The Win32 distribution has a php3_crypt.dll extension library which
provides the sflcrypt functions. But you have to call the encrypt
function instead. I still haven't figured out what the calling
parameters are, so if anyone knows, please be so kind as to post them 
here.