You are on page 1of 11

A

MICRO-PROJECT REPORT

ON

“Password generating system”


Submitted by

Ms. Inor Vidya

Ms. Shermale Akshada

Under the guidance of


Prof .Shinde B.B

DEPARTMENT OF COMPUTER TECHNOLOGY

AMRUTVAHINI POLYTECHNIC, SANGAMNER-422 608

MSBTE

YEAR 2020-2021

1
Course Name - Computer Technology

Course Code – CM5I

Sub Name – CSS

Course Code – 22519

MICRO-PROJECT TITLE

“Password generating system”

Sr No. Name of student Roll Enrollment Exam seat


No. no.
1. Inor Vidya 11. 1811050043
2. Shermale Akshada 50. 1811050028

Prof. Shinde B.B


Faculty & Signature

AMRUTVAHINI SHETI AND SHIKSHAN VIKAS SANSTHA’S


2
AMRUTVAHINI POLYTECHNIC, SANGAMNER

CERTIFICATE
This Is To Certify That

Inor Vidya
Shermale Akshada
Has Satisfactorily Completed Micro-Project Work Entitled.
“Password generating system”

As prescribed by MSBTE, Mumbai, as part of syllabus under subject Cascading Style Sheets
(22519) for the partial fulfillment in Diploma in Computer Technology for Academic year-
2020-2021

Prof.Shinde B.B Prof. Kale G.B


Faculty & Signature H.O.D (CM)

3
INDEX
SR NO. TITLE PAGE NO

1.0 RATIONATE 1.

2.0 AIMS/BENEFITS OF THE MICRO- 1.


PROJECT
3.0 COURSE OUTCOMES 1.

4.0 LITERATYRE REVIEW 2.

5.0 ACTUAL METHODOLOGY FOLLOWED 2-6.

6.0 ACTUAL RESOURCES USED 7.

7.0 OUTPUT OF MICRO PROJECT 7-10.

8.0 SKILL DEVELOPMENT/ LEARNING 10.


OUTCOMES OF THIS MICRO-PROJECT
9.0 APPLICATION OF THIS MICRO- 11.
PROJECT

4
Acknowledgment

We have taken efforts in this project. However, it


would not have been possible without the kind support and help of
many individuals and organization. We would to kind to extend our
sincere thanks to all of them.
First and foremost we want to thanks Prof. Kale .G.B. H.O.D
(Computer Technology) Amrutvahini Polytechnic, Sangamner for
giving us an opportunity to work on this project.
We are highly indebted to Prof .Shinde B.B (Project Guide) for his
guidance and constant supervision as well as for providing necessary
information regarding the project & also for his support in completing
the Project.
We would like to express our gratitude towards our Parents
&Members of Information Technology department for their kind co-
operation and encouragement which help us in completion of this
project.
Our thanks and appreciations also go to our colleague in developing
the people who have willing helped us with their abilities.

5
ANNAXURE-11

Micro-Project Report

“Password generating system”

1.0 Rationale:-
Java password generator to generate a secure password that consists of two
lowercase chars, two uppercase chars, two digits, two special chars, and pad the rest
with random chars until it reaches the length of 20 characters.

2.0 Aim/Benefits of the Micro-project:-


Aim:-
Create Password generating System using Advanced Java Programming.

Benefits:-
A password generator can be part of a password manager. When a
password policy enforces complex rules, it can be easier to use a password generator
based on that set of rules than to manually create passwords.

3.0 Course Outcomes Addressed:-


a). Develop program using GUI framework(AWT and Swing).
b). Handle event of AWT and Swing component.
c). Develop programs using Database.

4.0 Literature Review:-

Generate temporary password is now a requirement on almost every website now-a-days. In


case a user forgets the password, system generates a random password adhering to password
policy of the company. Following example generates a random password adhering to
following conditions −

 It should contain at least one capital case letter.

 It should contain at least one lower-case letter.

 It should contain at least one number.

 Length should be 8 characters.

6
 It should contain one of the following special characters: @, $, #, !.

3.0 Actual Methodology Followed:-

Many a time we forget our passwords and we opt for Forget password option and within
no time we get a new password at our registered email-ID or phone no. to login our account.
And every time we get a different password.
Sometimes we access our bank accounts while shopping from an online store or many more
ways, in order to verify our transition from the bank account, they send us OTP(One Time
Password) on our registered phone no. or our email-ID, within no time.

The following code explains how to generate such Passwords and OTP within no time and
what code we can use if in case we need to do so.

Program code:-

import javax.swing.*;

import java.awt.event.*;

public class PasswordFieldExample

public static void main(String[] args)

JFrame f=new JFrame("Password Field Example");

finl JLabel label = new JLabel();

label.setBounds(20,150, 200,50);

final JPasswordField value = new JPasswordField();

value.setBounds(100,75,100,30);

JLabel l1=new JLabel("Username:");

l1.setBounds(20,20, 80,30);

JLabel l2=new JLabel("Password:");

7
l2.setBounds(20,75, 80,30);

JButton b = new JButton("Login");

b.setBounds(100,120, 80,30);

final JTextField text = new JTextField();

text.setBounds(100,20, 100,30);

f.add(value); f.add(l1); f.add(label); f.add(l2); f.add(b); f.add(text);

f.setSize(300,300);

f.setLayout(null);

f.setVisible(true);

b.addActionListener(new ActionListener()

public void actionPerformed(ActionEvent e)

String data = "Username " + text.getText();

data += ", Password: "

+ new String(value.getPassword());

label.setText(data);

6.0 Actual resources used:-

Sr. no Name of Specification Qty. Remarks


Resource

1. Operating system Windows 10 01 --

8
2. Computer Intel @,Core(TM)i5-6500 01 --
GHz,4GBRAM

4. Software Eclipse IDE 01 --

7.0 Output of the Micro-Project:-

9
8.0 Skill Developed/Learning outcomes of this Micro-project:-

1) Able to prepared code.

2) Able to face errors, defects and faults.

The object of a JPasswordField class is a text component specialized for password


entry. It allows the editing of a single line of text. It inherits JTextField class.

10
Commonly used Constructors:

Constructor Description

Constructs a new JPasswordField, with a default document,


JPasswordField()
null starting text string, and 0 column width.

Constructs a new empty JPasswordField with the specified


JPasswordField(int columns)
number of columns.

Constructs a new JPasswordField initialized with the


JPasswordField(String text)
specified text.

JPasswordField(String text, int Construct a new JPasswordField initialized with the


columns) specified text and columns.

9.0 Application of this Micro-project:-

 Passwords are kept in one safe place.


 No need to remember all passwords.
 It allows generating robust passwords.
 It makes it easier to change passwords.
 Forgetting master password could be disastrous.
 Forgetting to sing out could allow someone access to all accounts.

11

You might also like