How Secure are Fuzzy Logic Password Protectors?

admin

Administrator
Staff member
Here's an example of the code I'm interested in:

function submitentry(){
password = document.password1.password2.value.toLowerCase()
username = document.password1.username2.value.toLowerCase()
passcode = 1
usercode = 1
for(i = 0; i < password.length; i++) {
passcode *= password.charCodeAt(i);
}
for(x = 0; x < username.length; x++) {
usercode *= username.charCodeAt(x);
}
//CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
if(usercode==1.1051652061384703e+23&&passcode==163696130771397840000)
//CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
{
window.location=password+".htm"}
else{
alert("password/username combination wrong")}
}

Is there any way to crack this code, other than brute force/guess and check? I'm sure there must be, but I can't think of it at the moment. So how secure, exactly, is this code? Thanks!
 
Back
Top