I don't think you're getting the point here. Anyone could look up that array and figure out the password. You have to use some sort of algorithm to define the password, not plain english.
For example:
The hashcode for the password abc is this:
97 * 97
(97*97)*98
(97*97)*(98*98)
answer:
(97*97)*(98*98)*99
which is:
8946039564
It's pretty much impossible to decode that into "abc"
The link you gave earlier even has a passcode generater on it.
Okay. I'll make up a password and use it as an example (in JS):
English Password: sr356f
Hash Password: 195183305640
With JavaScript you check the value of an input's character-code field:
Code:
<script>
//Encrypted Password script- By Rob Heslop
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com
function submitentry(){
password = document.password1.password2.value.toLowerCase()
passcode = 1
for(i = 0; i < password.length; i++) {
passcode *= password.charCodeAt(i);
}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
if(passcode==195183305640)
{
window.location="thepage.htm"}
else{
alert("password/username combination wrong")}
}
</script>
And then your HTML:
Code:
<form name="password1">
<strong>Enter password: </strong>
<input type="password" name="password2" size="15">
<input type="button" value="Submit" onClick="submitentry()">
</form>
Bookmarks