Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MD5 And SHA In JAVA  RSS feed

 
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
Posts: 42972
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
Boost this thread!