blob: 422058cb204cc87231496bf082bfebc252a14c04 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 string md5_crypt(string str, int seed)
3 string md5_crypt(string str, string seed)
Zesstra715ec202025-07-09 22:18:31 +02004 string md5_crypt(bytes str, int seed)
5 string md5_crypt(bytes str, string seed)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 Crypt the string <str> the first two characters
9 from the string <seed> as a seed. If <seed> is an integer, then
10 a random seed is used.
MG Mud User88f12472016-06-24 23:31:02 +020011
Zesstra715ec202025-07-09 22:18:31 +020012 The result has the first two characters as the seed.
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014 The efun uses the MD5 algorithm for encryption, and the result
15 is compatible with the Apache password encryption.
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017 If you want to let enter password information without echo,
18 input_to() can be used with special argument.
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020HISTORY
21 Introduced in LDMud 3.3
22
23SEE ALSO
24 crypt(E), input_to(E), md5(E), md5_crypt(E), hash(E), hmac(E)