0% found this document useful (0 votes)
11 views13 pages

Clas 12 Java Projct

Uploaded by

Dipanshu Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views13 pages

Clas 12 Java Projct

Uploaded by

Dipanshu Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

LADY FLORENCE CONVENT

SCHOOL

SESSION 2023-2024
STUDENT NAME: ___________________________________

CLASS: ____________________________________________

ROLL NO._________________________________________

SUBMITTED TO: _________________________________


ACKNOWLEDGEMENT
I would like to express my greatest gratitude to the
people who helped and supported me throughout my
project.
I am thankful to my parents and grateful to Mr.
Aryan whose valuable guidance has been the ones
that helped me patch this project and make it full
proof success.

Student name: ______________


Class: ______________________
Board Roll no.________________
PROJECT
ON
PASSWORD
GENERATOR
INDEX
1. Introduction
2. Software and hardware requirements
3.Procedure
4. Source Code
5.Output screen
6.Further improvement
7. Conclusion
8. Bibliography
INTRODUCTION

The user password.


REQUIREMENTS
Hardware Requirement for Java

Minimum hardware requirement to download Java Programme on your Windows operating


system as follows:

● Windows 7 software
● IBM-compatible 486 system
● Hard Drive and Minimum of 8 MB memory
● A CD-ROM drive
● Mouse, keyboard and sound card, if required

Software requirement for Java

Nowadays, Java is supported by almost every operating system. Whether it is a Windows,


Macintosh and UNIX all supports the Java application development. So you can download
any of the operating system on your personal computer. Here is the minimum requirement.

● Operating System
● Java SDK or JRE 1.6 or higher
● Java Servlet Container (Free Servlet Container available)

● Supported Database and library that supports the database connection with Java.
PROCEDURE
SOURCE CODE
1. / import required classes and packages
2. package javaTpoint.JavaExample;
3.
4. import org.passay.CharacterRule;
5. import org.passay.EnglishCharacterData;
6. import org.passay.PasswordGenerator;
7.
8. // create class GeneratePasswordExample1 to generate a random and secure password

9. public class GeneratePasswordExample1 {


10.
11. // main() method start
12. public static void main(String args[]) {
13.
14. // call the generatePassword() method to generate a random password using the P
assay library
15. String pass = generateSecurePassword();
16.
17. // print Passay generated password
18. System.out.println("The Passay generated password is:"+pass);
19.
20. }
21.
22. // create generateSecurePassword() method that find the secure password and retur
ns it to the main() method
23. public static String generateSecurePassword() {
24.
25. // create character rule for lower case
26. CharacterRule LCR = new CharacterRule(EnglishCharacterData.LowerCase);
27. // set number of lower case characters
28. LCR.setNumberOfCharacters(2);
29.
30. // create character rule for upper case
31. CharacterRule UCR = new CharacterRule(EnglishCharacterData.UpperCase);
32. // set number of upper case characters
33. UCR.setNumberOfCharacters(2);
34.
35. // create character rule for digit
36. CharacterRule DR = new CharacterRule(EnglishCharacterData.Digit);
37. // set number of digits
38. DR.setNumberOfCharacters(2);
39.
40. // create character rule for lower case
41. CharacterRule SR = new CharacterRule(EnglishCharacterData.Special);
42. // set number of special characters
43. SR.setNumberOfCharacters(2);
44.
45. // create instance of the PasswordGenerator class
46. PasswordGenerator passGen = new PasswordGenerator();
47.
48. // call generatePassword() method of PasswordGenerator class to get Passay gene
rated password
49. String password = passGen.generatePassword(8, SR, LCR, UCR, DR);
50.
51. // return Passay generated password to the main() method
52. return password;
53. }
54. }
OUTPUT SCREEN
Further Improvements
1. Exception handling: The code does not include any exception
handling.
2. Code reuse: The code could be made more reusable by breaking it
up into smaller methods.
3. Adding a GUI (Graphical User Interface) can greatly improve the
user experience of this Java application.
Conclusion
BIBLIOGRAPHY
OpenGenus IQ: Computing Expertise & Legacy

https://www.geeksforgeeks.org/java-program-to-generate-calendar-of-any-year-without-calendar-ge
t-function/

https://www.scribd.com/document/587127628/Password-Generator-Project-final

You might also like