Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is one way hashing .  RSS feed

 
Umesh Kilkile
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!