Javascript 16
Using the article and confirming it on the forums, the password is 12 characters long and is of the format xxxNUMBERyyy. I'd like to know if the words can be found in a dictionary. The first character does not contribute to the checksum, and since it's a letter I can get/guess the password with 52 bruteforces if I have the remaining 11 letters.
This is how I was planning to organise my code:
for i in wordlist1:
for j in wordlist2:
for n in all numbers of size (11 - len(i) - len(j)):
check(i+n+j)
I reduced check to:
sum=0
for i in range(1,12):
index = tab.index(entry[i])
sum = sum+(index*index)*(i*i*i)
if(sum==7391049):
print value
My computer's pretty slow and it would reduce my burden greatly if someone could let me know if the words could be found on a word list. Thank you.
mr_pi wrote:
markupvar entry = document.forms["asdf"].elements[0].value;
I don't understand it. Please explain for me :( Sorry, I didn't learn javascript well :(
It stores whatever is entered in asdf, so whatever you type inside that input. (password box).
markup<form onsubmit="return Check(88692589)" name="asdf">
I believe when I did it, I rewrote that piece of JS in C++ and bruteforced it. There is alot of equal checksums so cout it, do not just exit after you found one that matches. Took me about 5 minutes in total.