c++ brute-force password cracking algorithm..
I want to make a simple brute-force password app that can crack a password with 5 to 7 length and also works with letters+numbers password..but I completely have no idea what to do with cracking the characters in the password..only know the password with numbers only..This is my unfinished code.. #include <iostream> using namespace std; int main() { int password; cout << "Enter a password to bruteforce.. : "; cin >> password; for (int i = 0; i < 999999; i++) { if (i == password) { cout << "The brute-forced password is = " << i << endl; break; } cout << "Loading..[" << i << "]\n"; } return 0; } but this will only crack a password with length of 6 since i set the condition in for loop 999999.. Need someone to explain and also teach me how to make the code..i don't care if the brute-force takes too long to crack a longer password.. I just want to know how it works.. :) :)