• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MD5 And SHA In JAVA

 
Desmond Wong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at java.security.MessageDigest; it supports MD5 and SHA-1.
 
Desmond Wong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THX
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic