# Hashes sensitive to simularity

**URL:** <https://rubytalk.org/t/hashes-sensitive-to-simularity/121>\
**Category:** ruby-talk\
**Created:** [6 June 2002 17:17 UTC](https://rubytalk.org/t/hashes-sensitive-to-simularity/121 "2002-06-06T17:17:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berger\_Daniel2](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Berger\_Daniel2](https://rubytalk.org/u/Berger_Daniel2)\
**Post date:** [6 June 2002 17:17 UTC](https://rubytalk.org/t/hashes-sensitive-to-simularity/121/1 "2002-06-06T17:17:35Z")

</div>

Perhaps Napster will open-source their fingerprinting technology now that  
they’re bankrupt? Hmmm…maybe not.

A search out on Google revealed precious little. The Perl soundex modules  
all appear to be based on the Knuth algorithm.

That’s an interesting alogrithm, though. Maybe teachers should use it to  
see if students are cheating off each other. 🙂 (I used to teach).

Regards,

Dan

> **···**
>
> > -----Original Message-----  
> > From: Thomas Hurst [[mailto:tom.hurst@clara.net](mailto:tom.hurst@clara.net)]  
> > Sent: Thursday, June 06, 2002 11:42 AM  
> > To: [ruby-talk@ruby-lang.org](mailto:ruby-talk@ruby-lang.org)  
> > Subject: Re: Hashes sensitive to simularity
> > 
> > - Ned Konz ([ned@bike-nomad.com](mailto:ned@bike-nomad.com)) wrote:
> > 
> > > Perhaps Levenshtein distance?  
> > > [merriampark.com](http://www.merriampark.com/ld.htm)
> > 
> > Mmmn, the thing is, I really need a key I can use for a database and a  
> > hash. Maybe something like an overlong soundex, or a more generic  
> > hashing algorithm that produces identical hashes up to a certain  
> > threshold.
> > 
> > I suppose I might be able to use a less accurate algorithm and use  
> > a simularity matching algorithm like Levenshtein distance on  
> > the smaller  
> > set.
