jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Hash functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Hash functions" Watch "Hash functions" New topic

Hash functions

Duncan Samarasinghe

Joined: Nov 08, 2010
Posts: 5

Do you know anything about hash functions?

Let me know about libraries etc?

Thanks .
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027

Hashcode functions are built into Java standard classes. Check out the JavaDocs for java.lang.Object - the hashcode() method for example discussion.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45359
Welcome to the Ranch Find copies of Effective Java by Bloch, or Thinking in Java by Eckel, which used to be available free on the web (3/e), or Google for Niklaus Wirth's Algorithms book. You should find details of hashing algorithms in those.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

And if you want to hash something using MD5 or SHA you should look at MessageDigest.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Consider Paul's rocket mass heater.
subject: Hash functions
It's not a secret anymore!