Name: crypt - encrypt a string

Syntax:
       string crypt(string str, string seed);

Description:
       The crypt efun is used to enrypt the string 'str' using two characters
       from 'seed' as a seed. If 'seed' is 0, then a random seed is used.

       This function is used by the password mechanism.

Return value:
       The result of the encryption is returned. Its first two characters are
       the same as the seed.

Example:
       string name;
       name=crypt(this_player()->query_name(), "XY");

See also: helpdir/password