The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: CRC32 Hash Missmatch
Replies: 2   Last Post: Jul 21, 2013 9:30 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 87
Registered: 5/8/07
CRC32 Hash Missmatch
Posted: Jul 18, 2013 2:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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"]

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.