On Fri, Mar 22, 2002 at 08:34:27PM +0000, David Cantrell wrote: > Forwarded from the boston.pm list > I found that an MD5 has does not change at all even if the input changes. In > the following example code.. The results are shown after the __END_. > > Is my expectation wrong? > > __END__ > Data was abcffdgfdgfdg vdefdfjdfjds lkfjdfjsd > digest is = o?AO?Co6}UoP@ > digest is = A?</?e_rYoC!,,j8
The digest was different, but creating the digest is destructive. It resets the data. The hexdigest and base64 were both performed on empty strings. -- mike "That's libertarians for you - anarchists who want police protection from their slaves." - Kim Stanley Robinson, "Green Mars" p318