0

Hi to all
this code work well but i want that password appear in asterisk..

<SCRIPT language="JavaScript"><!--
function check() {
    // Prompt user for the password ...
    pwd = prompt('Enter password before continuing','');
    // ... then set the browser location. (change the line below this one!)
if(pwd=="sidra")
{
    location.href = 'showfile.php';}
}
// -->
</SCRIPT>
<HTML>
<HEAD>
<img src="idtech_logo.jpg" alt="logo" width="1500" height="80" />
//<TITLE>Site Entrance</TITLE>
</HEAD>
<CENTER><h1>User Requests</br></br></h1>
</CENTER>
<BODY  bgcolor="#1E90FF">

<DIV align="center">You must have a password to view the user requests!<P>
    <FORM>
        <INPUT type="Button" onClick="check()" value="Enter Password">
    </FORM>
</DIV>
</BODY>
</HTML>

please help me

6
Contributors
5
Replies
19
Views
6 Years
Discussion Span
Last Post by raviragarwal292
0

You do understand that javascript is clientside, so anyone who wants to find your password can 'view source' and read the password stored in clear text
at the very least hash the password and send only the hash value

2

Airshow's security rule no 1 : only ever send passwords from client-to-server, never from server-to-client.

Airshow

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.