Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var charlist = "abcdefghijklmnopqrstuvwxyz";
- var total = 248410397744610;
- function checkPass(password) {
- //debugger;
- var t = 0;
- for (var i = 0; i < password.length; i++) {
- var countone = password.charAt(i);
- var counttwo = (charlist.indexOf(countone));
- counttwo++; t *= 17; t += counttwo;
- }
- if (t == total) {
- return true;
- } else {
- return false;
- }
- }
- function PW (t, pw) {
- if (t < 1) {
- if (t == 0) {
- if (checkPass(pw))
- document.writeln("<br>"+pw);
- }
- return;
- }
- var i = 1;
- for (i = 1; i < 26; i++) {
- if ((t - i) % 17 == 0) {
- PW((t - i) / 17, charlist.charAt(i-1)+ pw);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement