Checksum routine - new to Python

Jerome Chan eviltofu at rocketmail.com
Thu May 18 19:33:54 EDT 2000


In article <etd7lcrcxsj.fsf at w20-575-109.mit.edu>, Alex 
<cut_me_out at hotmail.com> wrote:

> > If there is a Python library with something suitable, I'll happily use
> > that instead.
> 
> Maybe.  How about crc?
> 
> import binascii
> binascii.crc_hqx ('asentuhaonthu', 1092)
> 
> Or MD5?
> 
> import md5
> md5.new ('naoethuanotehu').digest()
> 
> 
> Alex.

Is there a difference between the binascii.crc_hqx and the zlib.crc32 
call?



More information about the Python-list mailing list