This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes What is one way hashing . Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "What is one way hashing ." Watch "What is one way hashing ." New topic
Author

What is one way hashing .

Umesh Kilkile
Greenhorn

Joined: Mar 31, 2010
Posts: 11
Hi,

What is one way hashing. How to implement it in Java. I've to compare the contents of two files by generating their hash value in Java.
Please give some examples.

Thank You,
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1295
Take a look at this article and see if after reading that you have any specific questions. You can use the java.security.MessageDigest class to digest/hash the contents of a file in Java. Take a look at the documentation there and see if that brings up any specific questions.


Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What is one way hashing .
 
Similar Threads
Hashing
Problem on String
HashCode to String
java program to retrieve the encrypted data from database
what is hashing and re-hashing?