This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

Hash functions

Duncan Samarasinghe
Greenhorn

Joined: Nov 08, 2010
Posts: 5
Hi.

Do you know anything about hash functions?

Let me know about libraries etc?

Thanks .
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12998
    
    5
Libraries?

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

Bill
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43885
    
  32
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.
 
Have you checked out Aspose?
 
subject: Hash functions
 
It's not a secret anymore!