October 2006
Intermediate to advanced
288 pages
5h 55m
English
To add a final layer of security to our Ajax applications, we will verify the unique passwords that we have created when we send them with the requests on the server side. We will create a method called verifyPassword to take an array and the previously created password as parameters. The array in this case will be the PASSWORD array that was created in the Constants object. After the method has been called and receives the parameters, we will split the password at the colon that we created in the getPassword method. This will leave us with an array of two values. The first value will be the md5 encrypted array value from the getPassword method and the second value will be the random index that we set and ...
Read now
Unlock full access