Hello all,
I am trying to protect a page within my site with a JS password
scheme.
Now I know JS can be quite easily "circumvent ed", but I came by a code
below.
My question is:
1. Is there a way to find a password for this script? How easily?
2. Is there a stronger scheme available in JS?
<SCRIPT>
var texts = "5d4v129v3387ff 76";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:',''); for
(x=1; x<6; x++) {interpret += (texts.indexOf( x));}if
(xorm==interpre t){interpret = interpret +
'.php';location .href=interpret ;}else{location .href='login.ph p';}";
eval(whatisthis );
</SCRIPT>
I thank you all.
m.
I am trying to protect a page within my site with a JS password
scheme.
Now I know JS can be quite easily "circumvent ed", but I came by a code
below.
My question is:
1. Is there a way to find a password for this script? How easily?
2. Is there a stronger scheme available in JS?
<SCRIPT>
var texts = "5d4v129v3387ff 76";
var interpret = "";
var whatisthis = "var xorm = prompt('Enter the password:',''); for
(x=1; x<6; x++) {interpret += (texts.indexOf( x));}if
(xorm==interpre t){interpret = interpret +
'.php';location .href=interpret ;}else{location .href='login.ph p';}";
eval(whatisthis );
</SCRIPT>
I thank you all.
m.
Comment