includes/sessions.php
changeset 57 b354deeaa4c4
parent 42 45ebe475ff75
child 72 bda11e521e8a
equal deleted inserted replaced
56:eb8eacb056d1 57:b354deeaa4c4
  2383           }
  2383           }
  2384           function runEncryption()
  2384           function runEncryption()
  2385           {
  2385           {
  2386             if(testpassed)
  2386             if(testpassed)
  2387             {
  2387             {
       
  2388               var frm = document.forms.'.$form_name.';
  2388               pass = frm.'.$pw_field.'.value;
  2389               pass = frm.'.$pw_field.'.value;
  2389               chal = frm.'.$challenge.'.value;
  2390               chal = frm.'.$challenge.'.value;
  2390               challenge = hex_md5(pass + chal) + chal;
  2391               challenge = hex_md5(pass + chal) + chal;
  2391               frm.'.$challenge.'.value = challenge;
  2392               frm.'.$challenge.'.value = challenge;
  2392               pass = stringToByteArray(pass);
  2393               pass = stringToByteArray(pass);