EmbLogic's Blog

Code that takes a username and password from the user as an input,matches it with the master database file to find whether it is correct or not.

RCS file: username_password.c,v
Working file: username_password.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7;    selected revisions: 7
description:
Code that takes a specific username and password from a user.Matches it with a master database.
—————————-
revision 1.7    locked by: root;
date: 2014/02/03 23:50:19;  author: root;  state: Exp;  lines: +1 -2
The program is working as expected.
Code is optimized by removing any redundant statements.
—————————-
revision 1.6
date: 2014/02/03 23:41:30;  author: root;  state: Exp;  lines: +25 -3
After the username is found to be correct and the user enters his/her password.
A comparison is made using strcmp() to find out whether the two strings match or not.
If successfull a message is displayed to the user saying that u are authorized.
—————————-
revision 1.5
date: 2014/02/03 22:23:42;  author: root;  state: Exp;  lines: +4 -2
If the username is correct the program asks the user to enter the password.
Checking….
—————————-
revision 1.4
date: 2014/02/03 22:07:54;  author: root;  state: Exp;  lines: +1 -1
New line character is inserted to see the output more clearly.
Now modifying the code to compare the password.
—————————-
revision 1.3
date: 2014/02/03 22:03:42;  author: root;  state: Exp;  lines: +44 -2
Output is coming as expected.
Inside the while loop use of memset function is done which fills the first n bytes to \o character.
The program is displaying the message if the username is there in the database otherwise it will display not present.
—————————-
revision 1.2
date: 2014/02/03 15:19:45;  author: root;  state: Exp;  lines: +2 -0
Header file:<stdlib.h> is included to support exit() function.
—————————-
revision 1.1
date: 2014/02/03 15:18:09;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>