+ 3
How to encrypt input password?
im confuse lol
2 Answers
+ 3
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;
int main(){
string pass ="";
char ch;
cout << "Enter pass\n";
ch = _getch();
while(ch != 13){//character 13 is enter
pass.push_back(ch);
cout << '*';
ch = _getch();
}
if(pass == "Mitsakos"){
cout << "\nAccess granted :P\n";
}else{
cout << "\nAccess aborted...\n";
}
}