+ 3

How to encrypt input password?

im confuse lol

23rd Oct 2018, 11:12 AM
Dominic Eusebio
Dominic Eusebio - avatar
2 ответов
+ 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"; } }
23rd Oct 2018, 11:33 AM
Googel
Googel - avatar
23rd Oct 2018, 11:37 AM
Googel
Googel - avatar