MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
| 2 | string md5_crypt(string str, int seed) |
| 3 | string md5_crypt(string str, string seed) |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 4 | string md5_crypt(bytes str, int seed) |
| 5 | string md5_crypt(bytes str, string seed) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 6 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 7 | DESCRIPTION |
| 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 User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 11 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 12 | The result has the first two characters as the seed. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 13 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 14 | The efun uses the MD5 algorithm for encryption, and the result |
| 15 | is compatible with the Apache password encryption. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 17 | If you want to let enter password information without echo, |
| 18 | input_to() can be used with special argument. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 19 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 20 | HISTORY |
| 21 | Introduced in LDMud 3.3 |
| 22 | |
| 23 | SEE ALSO |
| 24 | crypt(E), input_to(E), md5(E), md5_crypt(E), hash(E), hmac(E) |