• Post Reply Bookmark Topic Watch Topic
  • New Topic

MD5 function call  RSS feed

 
Dat Luu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I just start to study Java this semester, my first assignment is to convert a md5 string to password of the user, the MD5 function is available, i just need to call it and print the result. Here is my code. I can't call the md5 because of the String[] and String is different in main and md5 function, please help me modify the code so it can run properly, also the input has to be entered from command line.
Thank a lot!

 
Ron McLeod
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String[] args is an array of command-line arguments. You only want to pass the first element of the array to your MD5 hash routine, not the entire array.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!