Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. collisions = [fc for fc in D if size(fc)==size(f)]
  2. size_hash = 4*1024
  3. while (len(collisions) > 0) and (size_hash<=size(f)):
  4. H[(f,size_hash)] = md5(f,size_hash)
  5. for fc in collisions:
  6. if (fc,size_hash) not in H:
  7. H[(fc,size_hash)] = md5(fc,size_hash)
  8. collisions = [fc for fc in collisions if H[(fc,size_hash)]==H[(f,size_hash)]]
  9. size_hash *= 2
  10. for fc in collisions:
  11. # Painstakingly read and compare content to that of f...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement