BUG? sha-moduel returns same crc for different files
Aahz Maruch
aahz at panix.com
Sun Sep 17 12:07:21 EDT 2000
In article <slrn8s9qlb.dsi.nascheme at cranky.arctrix.com>,
Neil Schemenauer <nascheme at enme.ucalgary.ca> wrote:
>
> import sha
> data1 = open('file1.jpg', 'rb').read()
> data2 = open('file2.jpg', 'rb').read()
> print data1 == data2,
> print sha.new(data1).digest() == sha.new(data2).digest()
>
>What do you get for output? If you get "1 0" then you have most
>likely found a bug. If you get "1 1" then the data in the two
>files really is the same.
...and if you get "0 1", then you may or may not have a bug.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
The best way to get information on Usenet is not to ask a question, but
to post the wrong information. --Aahz
More information about the Python-list
mailing list