It works with #pike 7.4.
Pike v7.5 release 19 running Hilfe v3.5 (Incremental Pike Frontend)
__VERSION__;
(1) Result: 7.400000
Crypto.crypt_md5("steam", "$1$Kc1wkp//$NZDtxhZkKVLHflUk71E0n0");
(2) Result: "$1$Kc1wkp//$NZDtxhZkKVLHflUk71E0n0"
It even emulates the bugs...
/ Martin Nilsson (saturator)
Previous text:
2004-03-08 16:34: Subject: Crypto.crypt_md5();
hi,
it seems that Crypto.crypt_md5() has changed from 7.5.17 to 7.5.19:
Pike v7.5 release 19 running Hilfe v3.5:
Crypto.crypt_md5("steam", "$1$Kc1wkp//$NZDtxhZkKVLHflUk71E0n0");
(8) Result: 1
while in all older versions the result is: "$1$Kc1wkp//$NZDtxhZkKVLHflUk71E0n0"
ie instead of encrypting the string with the salt of the second argument, it now does a comparison.
while i agree that giving a second argument is most often used to compare two passwords i to think that this should be done with a new function (eg Crypt.check_md5()) and that crypt_md5() remains as it was.
greetings, martin.
/ Brevbäraren