I was mostly wondering, not that I will do such a thing. Lets say you want to make a simple program that asks for a password, you enter it, if correct it launches an application. My question is what security factors will you have to think of? Lets say the code is like this:
How could somebody try to hack the program? If he has access lets say to the .exe file, under windows. What security measures could you take in order for a simple password checker program to be safe?Code:<iostream>
using namespace std;
#define PASS "hey"
int main(void)
{
string str;
cin >> str;
cin.ignore();
if (str == PASS)
system(something);
}