MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CRC32 Hash Missmatch


This bug was fixed in version 8. Here you can find a workaround for version 
7:

http://stackoverflow.com/q/1854491

HTH,
Alexey


==============================================================
"roby"  wrote:ks82q9$jnc$1 at smc.vnet.net...

Dear Group,

I am trying to calculate a CRC 32 checksum with Mathematica 7, it seems 
that:

Hash[data, "CRC32"]

gives different values opposed to:

FileHash["datafile", "CRC32"]



In[613]:=
"Hello, World!"//
StringToStream //
FileHash[#, "CRC32"]& // IntegerString[#, 16, 8]&

Out[613]= "ec4ac3d0"



In[615]:= "Hello, World!"//
Hash[#, "CRC32"]& // IntegerString[#, 16, 8]&

Out[615]= "a776c351"


Bug or feature or different generating polynomial ??? 




  • Prev by Date: Re: f'[0]=0.5 is True?
  • Next by Date: Re: f'[0]=0.5 is True?
  • Previous by thread: Re: CRC32 Hash Missmatch
  • Next by thread: Re: CRC32 Hash Missmatch