PHP3 Manual
PrevNext

crypt

crypt -- DES-encrypt a string

Description

string crypt(string str, string salt);

crypt() will encrypt a string using the standard Unix DES encryption method. Arguments are a string to be encrypted and an optional two-character salt string to base the encryption on. See the Unix man page for your crypt function for more information. If you do not have a crypt function on your Unix system, you can use Michael Glad's public domain UFC-Crypt package which was developed in Denmark and hence not restricted by US export laws as long as you ftp it from an non-US site.

There is no decrypt function, since crypt() uses a one-way algorithm.


PrevHomeNext
ChrUpecho