STRING crypt(STRING str, STRING salt)
This function performs one-way encryption on str, 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 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"
Last Modified on 24 Mar 1996
Copyright © 1995, 1996, Brandon Gillespie