[Voiceglue] Hashing filenames
Doug Campbell
voiceglue at campbellcastle.com
Wed Jan 14 16:28:30 EST 2009
> Andrew Cumming ha scritto:
>> I found that some long text (and some not so long) would create very
>> long filenames. I think this also caused some problems when the
>> filenames got exceedingly long
This is fixed in the 0.9 release, which will be coming out
"any day now". I used a simpler hash than Digest::SHA1, but
your suggestion of Digest::SHA1 will make me go back and
consider using that instead.
emiliano esposito wrote:
> I was working on a similar thing, though I tried with MD5. The problem
> comes into existence with collisions. You should have two hashes to
> disambiguate when two texts produce the same SHA-1 digest.
Voiceglue almost certainly doesn't need the cryptographically sound
MD5 solution with its associated CPU cost.
The issue of collisions is a valid one, though. My guess is that
collisions will probably never happen, but I'm still pondering a
multi-entry-bucket structure just in case they do.
Doug Campbell
More information about the Voiceglue
mailing list