I'm part of CS50x and
I've made a code that would check every single possibility for a password of length 8 or less, but the total number of possibilities here is 96^8, so 7,213,895,789,838,336 possibilities in total. In order to process all those possibilities, it would take several thousand years for a long enough password...
It takes around 4 seconds (actually even a bit more) for the program to compute 1,000,000 passwords. And I don't even know if it increases with the length of the passwords it tries... 4 seconds for 1,000,000 passwords makes around 915 years for 96^8 passwords, so this program would need more than a thousand years (assuming there is a big margin of error) to find the "~~~~~~~~" password. (The tilda '~' is the last character the program looks for). (there actually is a big margin of error... At the 200,000,000-th tried password, the program has run for 870 seconds and not 800...)
So I'm wondering if submitting a program that would work but can't be actually tested is okay and is what is expected from us...
(I'm also trying to use the 'words' file before going into that long process, in order to find "weak" passwords quickly, even if the long process would anyway find them.)
By the way, I'm wondering... Is there any way for submitting hacker edition pset "answers" when part of CS50x and not CS50? Because I'd really like to have some feedback on what I've done... I know it's free and all, but I'm just wondering...
(This is actually a duplicate of what's on /r/cs50.)