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


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

CRC32 Hash Missmatch

From roby <roby.nowak@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject CRC32 Hash Missmatch
Date 2013-07-18 06:43 +0000
Message-ID <ks82q9$jnc$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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 — 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