lua-users home
lua-l archive

md5 test

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /