Next: explode
crypt(string) crypt(string, salt)This function performs one-way encryption on string, using the host system's
crypt() library routine. If salt is
specified, then it must be a two-character string; otherwise, a salt is
chosen randomly. The return value of crypt() is the encrypted
string; the first two characters of the encrypted string are the salt
used.
The encryption performed by this function has the property that it is very difficult to find a string which will produce a given result; however, a given string and a given salt will always yield the same encrypted string.
Examples:
crypt("foo", "ab")
=> "abQ9KY.KfrYrc"