Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: CRC32 Hash Missmatch

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131421] Re: CRC32 Hash Missmatch
  • From: roby <roby.nowak at gmail.com>
  • Date: Sun, 21 Jul 2013 21:39:36 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <ks82q9$jnc$1@smc.vnet.net>

Am Donnerstag, 18. Juli 2013 08:43:21 UTC+2 schrieb roby:
> 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 ???

Thank you for all your replies,
It seems that starting with Mathematica 8 the issue has been fixed.

Robert



  • Prev by Date: Re: inconsistent refinement behavior
  • Next by Date: gauss-kronrod rule data
  • Previous by thread: Re: CRC32 Hash Missmatch
  • Next by thread: f'[0]=0.5 is True?