Password Protected Cheat
Hello guys & girls!
I Want to make my cheats password protected, because i gave them to friend and he needs password protect because he's brother is using same computer and if he finds cheat he will use it, so i need make them password protected..
So what i need is, Make program start with right password & username and i cant code it myself
any help?
I Can code the normal Login with password
:code:
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
using namespace std;
int main(){
string username;
string password;
cout << "Username: ";
cin >> username;
cout << "Password: ";
cin >> password;
system("cls");
if(username=="manta"){
if(password=="hotd00g"){
cout << "Access valid.";
cout << "\n\n";
system("pause");
return 0;
}
else{
cout << "Access denied.\n";
cout << "Wrong password.\n\n";
system("pause");
return 0;
}
}
else{
if(password=="hotd00g"){
cout << "Access denied.\n";
cout << "Wrong username.\n\n";
system("pause");
return 0;
}
else{
cout << "Access denied.\n";
cout << "Wrong username and password.\n\n";
system("pause");
return 0;
}
}
}
:code:
I Want to make my cheats password protected, because i gave them to friend and he needs password protect because he's brother is using same computer and if he finds cheat he will use it, so i need make them password protected..
So what i need is, Make program start with right password & username and i cant code it myself
any help?I Can code the normal Login with password
:code:
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
using namespace std;
int main(){
string username;
string password;
cout << "Username: ";
cin >> username;
cout << "Password: ";
cin >> password;
system("cls");
if(username=="manta"){
if(password=="hotd00g"){
cout << "Access valid.";
cout << "\n\n";
system("pause");
return 0;
}
else{
cout << "Access denied.\n";
cout << "Wrong password.\n\n";
system("pause");
return 0;
}
}
else{
if(password=="hotd00g"){
cout << "Access denied.\n";
cout << "Wrong username.\n\n";
system("pause");
return 0;
}
else{
cout << "Access denied.\n";
cout << "Wrong username and password.\n\n";
system("pause");
return 0;
}
}
}
:code:


