Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15205
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: CRC32 Hash Missmatch |
| Date | 2013-07-20 09:53 +0000 |
| Message-ID | <ksdmne$507$1@smc.vnet.net> (permalink) |
| References | <20130718065947.625CD69DB@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On my Mac I get the same difference as you with v7; however, both v8 and v9 give the expected identical results: $Version "9.0 for Mac OS X x86 (64-bit) (January 24, 2013)" "Hello, World!" // StringToStream // FileHash[#, "CRC32"] & // IntegerString[#, 16, 8] & "ec4ac3d0" "Hello, World!" // Hash[#, "CRC32"] & // IntegerString[#, 16, 8] & "ec4ac3d0" % == %% True Bob Hanlon On Thu, Jul 18, 2013 at 2:59 AM, roby <roby.nowak@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 ??? > >
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: CRC32 Hash Missmatch Bob Hanlon <hanlonr357@gmail.com> - 2013-07-20 09:53 +0000
csiph-web