Professional Documents
Culture Documents
PRACTICAL NO. 4
THEORY:
Password: -
Password have been used through history to verify someone’s identity by checking if they passes the
knowledge required to across something.
Authentication: -
Authentication is the process of recognizing a user’s identity. It is the mechanism of associating an incoming
request with a set of identifying credentials.
IT/SEM-VI/C&NS/PR05 Page 1
Sipna College of Engineering & Technology, Amravati
Department of Information Technology
Algorithm: -
Input: - Take username and password from user.
Output: - Display username, password more than 8 character which is marked.
Procedure: -
1) Take username as input and store it in the array username [].
2) Using for loop take each character a password as input and store it in the array password [] and
consecutive part as “*”.
3) Print the array password [] as output and exit.
Program: -
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
char *username;
char *password;
clrscr();
IT/SEM-VI/C&NS/PR05 Page 2
Sipna College of Engineering & Technology, Amravati
Department of Information Technology
gets(username);
gets(password);
}else{
}else{
IT/SEM-VI/C&NS/PR05 Page 3
Sipna College of Engineering & Technology, Amravati
Department of Information Technology
getch();
Output: -
IT/SEM-VI/C&NS/PR05 Page 4