hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <tdunn...@maprtech.com>
Subject Re: OT - Hash Code Creation
Date Thu, 17 Mar 2011 17:23:19 GMT
On Thu, Mar 17, 2011 at 8:21 AM, Michael Segel <michael_segel@hotmail.com>wrote:

>
> Why not keep it simple?
>
> Use a SHA-1 hash of your key. See:
> http://codelog.blogial.com/2008/09/13/password-encryption-using-sha1-md5-java/
> (This was just the first one I found and there are others...)
>

Sha-1 is kind of slow.


>
> So as long as your key is unique, the sha-1 hash should also be unique.
>

Pretty much.  But you can get comparable performance with simpler hashes.
 These simpler hashes are very widely available even if not part of java.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message