File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes using the Sha160 class?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "using the Sha160 class??" Watch "using the Sha160 class??" New topic
Author

using the Sha160 class??

tim jones
Greenhorn

Joined: Feb 09, 2007
Posts: 26
hii
I want to get the message digest for a given file using Secure Hash Algorithm.
I found out this class (java.security.hash.Sha160) on googling and i went through the methods that it provides but i couldn't understand them..
Can you please tell me any way of doing this..i.e. given a file,i get the equivalent MD for that..i need this to ensure data integrity once a file is downloaded.
tim jones
Greenhorn

Joined: Feb 09, 2007
Posts: 26
anyways i found this example :
http://java.sun.com/javase/6/docs//technotes/guides/security/crypto/CryptoSpec.html#MDEx
 
 
subject: using the Sha160 class??