MathGroup Archive 2013

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

Search the Archive

Re: CRC32 Hash Missmatch


I can't duplicate your result:

(Debug) In[13]:= IntegerString[FileHash[StringToStream["Hello, World!"], "CRC32"], 16, 8]
IntegerString[Hash["Hello, World!", "CRC32"], 16, 8]
"Hello, World!" // StringToStream // FileHash[#, "CRC32"] & //
 IntegerString[#, 16, 8] &
"Hello, World!" // Hash[#, "CRC32"] & // IntegerString[#, 16, 8] &
(Debug) Out[13]= "ec4ac3d0"
(Debug) Out[14]= "ec4ac3d0"
(Debug) Out[15]= "ec4ac3d0"
(Debug) Out[16]= "ec4ac3d0"

Maybe something about In[614] in your notebook?

On Jul 18, 2013, at 2:59 AM, roby <roby.nowak at gmail.com> wrote:

> 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: keep special functions unexpanded
  • Next by Date: Re: CRC32 Hash Missmatch
  • Previous by thread: CRC32 Hash Missmatch
  • Next by thread: Re: CRC32 Hash Missmatch