Hello everybody. It's been 2 weeks since I have really started coding in c++. Today, I tried to create a little program that would try to brute force a password (so there has nothing to do with hacking, since bruteforcing isn't really efficient : I just want to learn coding :) !). I haven't find something similar on the internet so I am reaching to you to help me in this. Let me present you the code :
The "i" in the code, which goes from 33 to 126 represents every caracters one may use in ASCII code. The code works well until the password is longer than... 2 caracters. Once the password is longer, the string "crackedPassword" only contains tilde between the first and last caracter, and I can't figure out why. Any help is welcomed !