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
[Link]
4. Source Code
[Link] screen
[Link] 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 [Link];
3.
4. import [Link];
5. import [Link];
6. import [Link];
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. [Link]("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([Link]);
27. // set number of lower case characters
28. [Link](2);
29.
30. // create character rule for upper case
31. CharacterRule UCR = new CharacterRule([Link]);
32. // set number of upper case characters
33. [Link](2);
34.
35. // create character rule for digit
36. CharacterRule DR = new CharacterRule([Link]);
37. // set number of digits
38. [Link](2);
39.
40. // create character rule for lower case
41. CharacterRule SR = new CharacterRule([Link]);
42. // set number of special characters
43. [Link](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 = [Link](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
[Link]
t-function/
[Link]