Click to See Complete Forum and Search --> : Secure Username and password verification using Javascript


Wallykid
07-02-2003, 01:02 PM
I am wondering if there is a way to verify Username and password using Javascript securely. Javascript has client and server side script, and i know nothing about server side script. I know that for client side script, users can easily access the script by view source. Even if we try to hide the script by storing the script in a javascript.js file, they will still be able to download that file. So what is the normal way of doing it? Anyone?

havik
07-02-2003, 01:32 PM
My opinion is that JavaScript won't provide the security that you and your users deserve. I suggest using a server side language like PHP or ASP instead.

Havik

Wallykid
07-02-2003, 02:14 PM
Thanks for all the answers. They do clear up my questions and also support my theory that javascript is not a secure way of doing password verification. Anyone knows what is the difference between server side script like PHP, ASP ?

pyro
07-02-2003, 02:44 PM
Originally posted by Wallykid
Thanks for all the answers. They do clear up my questions and also support my theory that javascript is not a secure way of doing password verification.While I agree that server-side languages are the best bet for this puropose, you can obtain a farily high level of security in javascript using encryption algorithms such as MD5 (128-bit) or SHA-1 (160-bit). There have been two or three threads on this subject lately. If you do a search, you may find some posts the would interest you. This link might also be of interest: http://pajhome.org.uk/crypt/md5/