On Thu, Mar 17, 2011 at 8:21 AM, Michael Segel <michael_se...@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.

Reply via email to