If this has been asked before, I apologize. I have spent countless hours searching through google and on this site for this answer:
I have created an external php page for both registering and logging in clients. I modifed the login.html file on the hotspot to pass the id and challenge, I have tried to concatenate chap-id, password, and chap-challenge utilizing the following in my external php file $pwd = $chapid.$password.$chapchallenge. An echo of $pwd is:
\051test\333\311\130\244\370\106\344\017\263\167\057\152\317\114\013\323 where \051 is the chap-id and test was the password. The conversion does not match and chap fails.
I modifed the login.html file on the hotspot to display the chap password which was c5cc6920e01c5cbf0545b42e1c551111. php md5() displayed 445a83713211579469e2f2577697d64b. I'm obviously lost.
I can't get php to pass variables to functions and an external javascript file (md5.js) so I am unable to utilize this in my script.
My thoughts are that the \ need to be stripped and converted to something else before md5()???
Help would be most appreciated!