Encrypt Password Using MD5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    Encrypt Password Using MD5

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

    Code:
    var p = document.getElementById('Password').value;
    alert(p);// this part working
    var temp = MD5(p);
    alert(temp);//this is not working
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you would have to define the MD5() function, otherwise you get a script error (undefined function MD5())

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      Also, MD5 is a one way algorithm.

      Comment

      Working...