md5 test
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: md5 test
- From: Shmuel Zeigerman <shmuz@...>
- Date: 2008年6月30日 14:04:16 +0300
This test (from the distribution) seems to fail with probability 1/256
(provided >= 1 sec. is allowed between the tests):
assert(md5.crypt('a', 'a') ~= md5.crypt('a', 'b'))
This test always fails:
local seed = '154円21円104円72円'
assert(md5.crypt('a','a',seed) ~= md5.crypt('a','b',seed))
Whether this behavior is due to the md5 algorithm, or is this an
implementation fault?
--
Shmuel