By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,717 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,717 IT Pros & Developers. It's quick & easy.

Encrypt Password Using MD5

100+
P: 250
I want to encrypt password using md5 method in javascript. This is my code and I didn't get any answer. Please help me..

Expand|Select|Wrap|Line Numbers
  1. var p = document.getElementById('Password').value;
  2. alert(p);// this part working
  3. var temp = MD5(p);
  4. alert(temp);//this is not working
  5.  
Sep 8 '11 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
you would have to define the MD5() function, otherwise you get a script error (undefined function MD5())
Sep 8 '11 #2

Rabbit
Expert Mod 10K+
P: 12,430
Also, MD5 is a one way algorithm.
Sep 8 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.