Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function checkPass( password ) { var total = 0 ;
- var charlist = "abcdefghijklmnopqrstuvwxyz" ;
- for ( var i = 0; i < password.length; i++ ) {
- var countone = password.charAt ( i ) ;
- var counttwo = ( charlist.indexOf( countone )) ;
- counttwo++;
- total *= 17;
- total += counttwo;
- }
- document.write(total,"<br>");}
- /* in the application the code will pass when the password makes total == 248410397744610 */
- </script>
Advertisement
Add Comment
Please, Sign In to add comment