Using filepath method to identify an .html page

Ferrous Cranus nikos.gr33k at gmail.com
Wed Jan 23 10:56:56 EST 2013


Τη Τετάρτη, 23 Ιανουαρίου 2013 5:25:36 μ.μ. UTC+2, ο χρήστης Michael Torrie έγραψε:
> On 01/23/2013 12:25 AM, Ferrous Cranus wrote:
> 
> > <some perl code>
> 
> > Using that method ABC.html and CBA.html now have different values
> 
> > because each letter position's value gets bumped up increasingly from
> 
> > left to right.
> 
> 
> 
> You have run this little "hash" algorithm on a whole bunch of files, say
> 
> C:\windows\system32 right?  And how many collisions did you get?
> 
> 
> 
> You've already rejected using the file path or url as a key because it
> 
> could change.  Why are you wanting to do this hash based on the file's
> 
> path or url anyway?

No, its inevitable, something must remain the same.

Filepath *must* be used.

Can you transliterate this code to Python code please?



More information about the Python-list mailing list