Skip to main content

Password Security Version 2.0

Language


Password.cpp Author : oursharingciub Date : September 26, 2014 Firday Email : [email protected] Tool : Dev C++ Language : C++ Notice: Reference Mr. Jake Rodriguez Pomperada programming #include #include #include #include //system(), Sleep( ) #include using namespace std; const int PASSLEN= 7 ; //The length of password string PassGet( void ); // Get the password void Menu( void ); //The start menu //******** main function ********** int main( void ) { Menu(); getch(); //wait untill enter any key return 0; } //****** PassGet and menu function***** string PassGet( void ) { char password[ PASSLEN ]= { '\0' }; char letter; int loop; int len; string password2; len= 0; loop= 0; letter= '\0'; while( letter!= '\r' ) //Caarrige return character { letter= getch(); if( letter== '\b' && password[ 0 ]== '\0' ) { loop= 0; len= 0; } else { if( letter== '\b' && password[ 0 ]!= '\0' ) // \b :backspace { cout time_t date; date= time( NULL ); cout> ch; if( toupper( ch )== 'Y' ) { system( "cls" ); Menu(); } else { exit( 1 ); } } return ; } //End of Menu Function

Tags

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.