VB icon

The best most secure simple password program lock

Email
Submitted on: 1/2/2015 3:59:00 AM
By: Miah! (from psc cd)  
Level: Beginner
User Rating: By 3 Users
Compatibility: C, Microsoft Visual C++, Borland C++
Views: 1173
 
     This code is the basics for yet another console program that prompts for a password when opened. BUT the password cannot be found by means of a hex editor and searching for the password within the binary. Each character is defined at a time which doesn't leave the whole word visible in hex. Kinda like an armored virus with hidden info only on a much simpler scale. RATE THIS CODE!
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :The best most secure simple password program lock
//**************************************
<stdio.h>
<string.h>
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: The best most secure simple password program lock
// Description:This code is the basics for yet another console program that prompts for a password when opened. BUT the password cannot be found by means of a hex editor and searching for the password within the binary. Each character is defined at a time which doesn't leave the whole word visible in hex. Kinda like an armored virus with hidden info only on a much simpler scale. RATE THIS CODE!
// By: Miah! (from psc cd)
//
// Inputs:Your login password
//
// Returns:correct/incorrect
//**************************************

/*
Its a better way to store your passwords within and exe.
Just in case some hacker veiws your hex to try and steal a password
to your super-secret console program that has really important
information on it....
Or maybe you just wanna display obscene languauge but then
Planet-source-code rejects your code cuz it found the word
$hit in it! grrr... swear[0] = 'S';....
 By Jeremiah Molinaro
*/
#include <stdio.h>
#include <string.h>
void main()
{
	int var;//for the thing at the end...
	char password[20], login[20];;// By simply breaking up the word to
	password[0] = 'w';//individual characters, it wont all show up close together 
	password[1] = 'o';// and give away the word.
	password[2] = 'r';
	password[3] = 'd';
	password[4] = 'p';//In this case, the password is "wordpoop"
	password[5] = 'o';
	password[6] = 'o';
	password[7] = 'p';
	password[8] = '\0'; //Dont forget the null set or you'll word will never match!
	
	printf("Enter Password craphead: ");
	scanf("%s",login);
	if(!strcmp(login,password)) printf("Correct");//look up the strcmp function for more info
	else printf("WRONG!!!");
	scanf("%s",var);//delete this part, its just so it scans for something so it doesn't close right away
	//cuz i can't use "getch()" on my compiler
}


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.