Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 13

CONTENTS

DECLARATION
2
ACKNOWLEDGEMENT
3
CERTIFICATE
4
ABSTRACT
5
CONTENTS
6

1. INTRODUCTION
a. Organization
Profile&&&&&&&&&&&&&
&&&&&&&&& 8
b. Introduction of
Project&&&&&&&&&&&&&
&&&&&&&& 11
c. Problem
Specification&&&&&&&&&
&&&&&&&&&&&&.. 12
d. Problem
Definition&&&&&&&&&&&
&&&&&&&&&&&&12
e. Limitation of Existing
System&&&&&&&&&&&&
&&&&&&..12
f. Objective of
Project&&&&&&&&&&&&&
&&&&&&&&&...13
2. SYSTEM ANALYSIS
a. Feasible
study&&&&&&&&&&&&&
&&&&&&&&&&&&.14
b.
Introduction&&&&&&&&&&
&&&&&&&&&&&&&&&&1
4
c. Summary and
Constraint&&&&&&&&&&&
&&&&&&&&&..14
d. Types of Feasible
Study&&&&&&&&&&&&&
&&&&&&&&.15
e. Hardware and Software
Requirements&&&&&&&&&
&&&&&...17
3. DEVELPOMENT
ENVIRONMENT
a. Introduction to Oracle
Database&&&&&&&&&&&&
&&&&&..18
b. Introduction to
Java&&&&&&&&&&&&&&
&&&&&&&&..23
c. Introduction to NetBeans
Ide
8.1&&&&&&&&&&&&&&&
&&.27
4. SYSTEM DESIGN
a. Modular
Description&&&&&&&&&&
&&&&&&&&&&&&.31
CONTENTS
DECLARATION
2
ACKNOWLEDGEMENT
3
CERTIFICATE
4
ABSTRACT
5
CONTENTS
6

1. INTRODUCTION
a. Organization
Profile&&&&&&&&&&&&&
&&&&&&&&& 8
b. Introduction of
Project&&&&&&&&&&&&&
&&&&&&&& 11
c. Problem
Specification&&&&&&&&&
&&&&&&&&&&&&.. 12
d. Problem
Definition&&&&&&&&&&&
&&&&&&&&&&&&12
e. Limitation of Existing
System&&&&&&&&&&&&
&&&&&&..12
f. Objective of
Project&&&&&&&&&&&&&
&&&&&&&&&...13
2. SYSTEM ANALYSIS
a. Feasible
study&&&&&&&&&&&&&
&&&&&&&&&&&&.14
b.
Introduction&&&&&&&&&&
&&&&&&&&&&&&&&&&1
4
c. Summary and
Constraint&&&&&&&&&&&
&&&&&&&&&..14
d. Types of Feasible
Study&&&&&&&&&&&&&
&&&&&&&&.15
e. Hardware and Software
Requirements&&&&&&&&&
&&&&&...17
3. DEVELPOMENT
ENVIRONMENT
a. Introduction to Oracle
Database&&&&&&&&&&&&
&&&&&..18
b. Introduction to
Java&&&&&&&&&&&&&&
&&&&&&&&..23
c. Introduction to NetBeans
Ide
8.1&&&&&&&&&&&&&&&
&&.27
4. SYSTEM DESIGN
a. Modular
Description&&&&&&&&&&
&&&&&&&&&&&&.31
boolean
IncludeNum =
false;
boolean IncludeSym = false;

boolean correctParams = false;


boolean correctParams;

System.out.println();
System.out.println("Hello, welcome to the Password Generator :) answer"
+ " the following questions by Yes or No \n");

do {
System.out.println("Do you want Lowercase letters \"abcd...\" to be used
String input = keyboard.nextLine();
String input;
correctParams = false;

do {
System.out.println("Do you want Lowercase letters \"abcd...\" to be used
input = keyboard.next();
PasswordRequestError(input);
} while (!input.equalsIgnoreCase("yes") && !input.equalsIgnoreCase("no")
if (isInclude(input)) IncludeLower = true;

System.out.println("Do you want Uppercase letters \"ABCD...\" to be used


input = keyboard.nextLine();
do {
System.out.println("Do you want Uppercase letters \"ABCD...\" to be used
input = keyboard.next();
PasswordRequestError(input);
} while (!input.equalsIgnoreCase("yes") && !input.equalsIgnoreCase("no")

if (isInclude(input)) IncludeUpper = true;

do {
System.out.println("Do you want Numbers \"1234...\" to be used? ");
input = keyboard.nextLine();
input = keyboard.next();
PasswordRequestError(input);
} while (!input.equalsIgnoreCase("yes") && !input.equalsIgnoreCase("no")

if (isInclude(input)) IncludeNum = true;

do {
System.out.println("Do you want Symbols \"!@#$...\" to be used? ");
input = keyboard.nextLine();
input = keyboard.next();
PasswordRequestError(input);
} while (!input.equalsIgnoreCase("yes") && !input.equalsIgnoreCase("no")

if (isInclude(input)) IncludeSym = true;

//No Pool Selected


if (!IncludeUpper && !IncludeLower && !IncludeNum && !IncludeSym) {
System.out.println("You have selected no characters to generate your " +
"password at least one of your answers should be Yes");
"password, at least one of your answers should be Yes\n");
correctParams = true;
}

System.out.println("Great! Now enter the length of the password");


int length = keyboard.nextInt();
} while (correctParams);

final Generator generator = new Generator(IncludeUpper, IncludeLower, In


final Password password = generator.GeneratePassword(length);
System.out.println("Great! Now enter the length of the password");
int length = keyboard.nextInt();

System.err.println("Your generated password -> " + password);


final Generator generator = new Generator(IncludeUpper, IncludeLower, In
final Password password = generator.GeneratePassword(length);

} while (correctParams);
System.err.println("Your generated password -> " + password);
}

private boolean isInclude(String Input) {


if (Input.equalsIgnoreCase("yes")) {
return true;
} else {
if (!Input.equalsIgnoreCase("no")) {
PasswordRequestError();
}
}
else {
return false;
}
}

private void PasswordRequestError() {


System.out.println("You have entered something incorrect let's go over i
private void PasswordRequestError(String i) {
if (!i.equalsIgnoreCase("yes") && !i.equalsIgnoreCase("no")) {
System.out.println("You have entered something incorrect let's go over i
}
}

private void checkPassword() {


String input;
final Scanner in = new Scanner(System.in);

System.out.print("\nEnter your password:");


input = in.nextLine();
input = keyboard.next();

final Password p = new Password(input);

System.out.println(p.calculateScore());

in.close();
}

private void printMenu() {


System.out.println();
System.out.println("Enter 1 - Password Generator");
System.out.println("Enter 2 - Password Strength Check");
System.out.println("Enter 3 - Useful Information");
System.out.println("Enter 4 - Quit");
System.out.print("Choice:");
}
private void printQuitMessage() {
System.out.println("Closing the program bye bye!");
}
}

You might also like