A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/efun/crypt
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:
This page was generated in LPC
Imprint / Impressum