v1.2p4 - kfun - crypt


crypt - encrypt a string


string crypt(string passwd, varargs string salt)


Encrypt a password, of which only the first 8 characters are significant. If the optional second argument is given, its first two characters are used to perturb the encryption algorithm additionally; without one, the encryption is perturbed randomly. The returned string is 13 characters long, the first two of which are equal to the used salt.