Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15202

Re: CRC32 Hash Missmatch

From "Alexey Popkov" <lehin.p@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: CRC32 Hash Missmatch
Date 2013-07-20 09:52 +0000
Message-ID <ksdmlh$501$1@smc.vnet.net> (permalink)
References <ks82q9$jnc$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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@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 ??? 

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

CRC32 Hash Missmatch roby <roby.nowak@gmail.com> - 2013-07-18 06:43 +0000
  Re: CRC32 Hash Missmatch "Alexey Popkov" <lehin.p@gmail.com> - 2013-07-20 09:52 +0000
  Re: CRC32 Hash Missmatch roby <roby.nowak@gmail.com> - 2013-07-22 01:30 +0000

csiph-web