wood burning stoves 2.0*
The moose likes Security and the fly likes MD5 And SHA In JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "MD5 And SHA In JAVA" Watch "MD5 And SHA In JAVA" New topic
Author

MD5 And SHA In JAVA

Desmond Wong
Greenhorn

Joined: Jul 07, 2005
Posts: 2
How can I convert the following encoding into java code???
MD5(secret + SHA-1('A' + secret + clientRandom + serverRandom))

THANK YOU VERY MUCH FOR HELP
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
Take a look at java.security.MessageDigest; it supports MD5 and SHA-1.


Ping & DNS - my free Android networking tools app
Desmond Wong
Greenhorn

Joined: Jul 07, 2005
Posts: 2
THX
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MD5 And SHA In JAVA