Sida cd quiz casa crack

broken image
broken image

I want to make my code prettier, so how can I get rid of this copy/pasted code and make it 1/8 size of current size? CTRL + MOUSE WHEEL DOWN, zoom-out and see the copy pasted parts. case 1 has 1 for loop, case 8 has 8 nested for loops.

broken image

The one and only difference between those cases is the 'for loop' count. case 2 = two characters, case 8 = 8 characters length password. For example, case 1 loops with one character length passwords. It looks so long and dirty because I copied a code block 8 times in a switch case statement. My program works really well but it's a bit dirty and it can be faster if I solve these two problems: Check some of those screenshots to understand easier. I've explained how my program works at the start of the code. I am just coding some classic brute force password cracking program, just to improve myself.