Jump to content




Verifying that two files are the same


  • You cannot reply to this topic
49 replies to this topic

#41 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 07 May 2014 - 10:08 PM

View Postskwerlman, on 07 May 2014 - 05:53 PM, said:

Wow, that SHA1 routine is stupid fast compared to the ones I've seen! Nice find!
Thanks... an advantage of being on the forums for so long.

View Postskwerlman, on 07 May 2014 - 05:53 PM, said:

Doesn't removing the license info constitute a violation of the license?
yes and no. I've added the license back into the SHA1 (that was just forgetting to copy it).

#42 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 10 May 2014 - 12:21 AM

Yeah, I guess you should use the SHA1 snippet BIT linked, though using SHA256 honestly happens almost instantly on my machine.

#43 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 10 May 2014 - 01:03 AM

View Postawsmazinggenius, on 10 May 2014 - 12:21 AM, said:

Yeah, I guess you should use the SHA1 snippet BIT linked, though using SHA256 honestly happens almost instantly on my machine.
the thing is, is its just overkill. there's a reason that CRC32, MD5, and SHA1 are used in industry to verify integrity of files, and its just 'cause its all you need, anything more is just extra unrequited processing. and when dealing with a large quantity of files like oeed will be, its just best to stick to something simple.

#44 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 11 May 2014 - 04:19 AM

View Posttheoriginalbit, on 10 May 2014 - 01:03 AM, said:

View Postawsmazinggenius, on 10 May 2014 - 12:21 AM, said:

Yeah, I guess you should use the SHA1 snippet BIT linked, though using SHA256 honestly happens almost instantly on my machine.
the thing is, is its just overkill. there's a reason that CRC32, MD5, and SHA1 are used in industry to verify integrity of files, and its just 'cause its all you need, anything more is just extra unrequited processing. and when dealing with a large quantity of files like oeed will be, its just best to stick to something simple.
Yea, I've just tried using GravityScore's SHA-256 API and a even a single file is too big really, it just grinds to a halt.

Anyone know of a good MD5 API for CC, I haven't really been able to find one that works.

#45 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 May 2014 - 04:26 AM

View Postoeed, on 11 May 2014 - 04:19 AM, said:

Anyone know of a good MD5 API for CC, I haven't really been able to find one that works.
clearly haven't read the last few replies on the last page... :P

#46 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 11 May 2014 - 04:27 AM

I would go with SHA1 over MD5, but that's (sort-of) just a matter of preference.

#47 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 11 May 2014 - 06:12 AM

View Posttheoriginalbit, on 11 May 2014 - 04:26 AM, said:

View Postoeed, on 11 May 2014 - 04:19 AM, said:

Anyone know of a good MD5 API for CC, I haven't really been able to find one that works.
clearly haven't read the last few replies on the last page... :P
*facepalm*

View Postawsmazinggenius, on 11 May 2014 - 04:27 AM, said:

I would go with SHA1 over MD5, but that's (sort-of) just a matter of preference.
I'll see which one is quicker and use that. I'm not overly concerned about accuracy, if one slips through it's not the end of the world.

Edit: CRC32 was quicker, so I'll be using that.

Edit 2: Got it all working now, it's doing it's just excellently. Thanks everyone!

Edited by oeed, 11 May 2014 - 11:02 AM.


#48 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 11 May 2014 - 09:40 PM

As in, if you were to release the next release of OneOS now the hashing part will all be working? Great!

#49 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 11 May 2014 - 09:44 PM

View Postawsmazinggenius, on 11 May 2014 - 09:40 PM, said:

As in, if you were to release the next release of OneOS now the hashing part will all be working? Great!

Yep, it's all done and working.

#50 viluon

  • Members
  • 183 posts
  • LocationCzech Republic

Posted 19 May 2014 - 02:51 PM

View Postoeed, on 11 May 2014 - 09:44 PM, said:

View Postawsmazinggenius, on 11 May 2014 - 09:40 PM, said:

As in, if you were to release the next release of OneOS now the hashing part will all be working? Great!

Yep, it's all done and working.
I suggest editing the original post, so people around here don't have to read all the replies.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users