Que pensez vous de ce script en protection de mot de passe?
je peut l'utiliser sans trop de crainte?
Code :
- <script>
- 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);
- }
- if(usercode==3.6664775095438556e+28&&passcode==456184320775223040)
- {
- window.location=password+".htm"}
- else{
- alert("password/username combination wrong" )}
- }
- </script>
|
---------------
http://www.free-tribes.org