[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: md5 test
- From: Shmuel Zeigerman <shmuz@...>
- Date: Mon, 30 Jun 2008 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