Guest User

Untitled

a guest
Apr 25th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function submitAuthentication()
  2. {
  3.   var user = document.getElementById("user").value;
  4.   var pwd  = document.getElementById("password").value;
  5.   document.getElementById("password").disabled = true;
  6.   var HA1 = MD5(user + ":" + realm + ":" + pwd);
  7.   var HA2 = MD5("GET" + ":" + uri);
  8.   document.getElementById("hidepw").value = MD5(HA1 + ":" + nonce +
  9.                           ":" + "00000001" + ":" + "xyz" + ":" + qop + ":" + HA2);
  10.   document.authform.submit();
  11.   disable_fields(document.authform);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment