Better "Password"?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#include <iostream>
#include <string>
#include <Windows.h>
using namespace std;
int main()
{
string x;
cout<<"Enter ADMIN-KEY: ";
cin>>x;
if (x=="\x39\x38\x31\x32")
{cout<<"STARTING SERVER\n";
Sleep(2000);
system("server");}
else
cout<<"Denied\a\n";
cin.get();
cin.get();
return 0;
}
|
Would this be a good way to ensure that no one can figure out what the password is?
Last edited on
Topic archived. No new replies allowed.