Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset=“utf-8”>
- <title> Assignment3 </title>
- </head>
- <body>
- <script type="text/javascript">
- <!--
- var password = "hTy6Z29k";
- document.write("Password is: " + password + "<br />");
- var crackedPassword = "";
- document.write("Cracked password is: ");
- for (i = 0; i < password.length; i++)
- {
- var asciiNum = 48;
- while ( password.charAt(i) != String.fromCharCode(asciiNum) )
- {
- asciiNum++;
- }
- crackedPassword += String.fromCharCode(asciiNum);
- document.write(String.fromCharCode(asciiNum));
- }
- //-->
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement