function Login() { var Pass = document.getElementById("Password").value; var User = document.getElementById("Username").value; var Key = "8C6976E5B5410415BDE908BD4DEE15DFB167A9C873FC4BB8A81F6F2AB448A918" // using SHA256 the passwords "admin" var Username = "8C6976E5B5410415BDE908BD4DEE15DFB167A9C873FC4BB8A81F6F2AB448A918" // usernames admin as well if (Pass == Key & User == Username) { window.open("/access.html") } else { alert("Thats not the right username or password"); } }
http://www.webtoolkit.info/javascript_sha256.html#.W-esvU27rSd
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)