This project is a Password Generator that allows users to generate random passwords, verify the generated passwords, delete specific passwords, and exit the program. The program runs on the command line and provides a simple interface to perform these actions.
To compile the project, make sure you have a C++ compiler installed on your system. Then, follow these steps:
Open a terminal in the directory where the main.cpp source code file is located
Run the following command to compile the program:
g++ main.cpp -o main
This will create an executable called main.exe.
To run the program, use the following command:
./main
The program will display a menu of options:
Password Generator - Main Menu
- Generate Password
- Check The Password File
- Delete a password
- Exit
Select an option (1/2/3/4):
Here's how to use each option:
This option allows you to generate a new random password. You must enter the desired password length and then a password will be generated and stored in a file.
This option allows you to view all previously generated passwords. The program will display a list of passwords stored in the file.
You can select this option to remove a specific password from previously generated passwords. You must enter the password you want to delete and the program will search for it and delete it from the file.
This option allows you to exit the program.
Below is an example of how to use the program:
-
Run the program.
-
Select the "Generate Password" option.
-
Enter the length of the password (for example, 10).
-
The program will generate a random password and store it in the file.
-
Return to the main menu and select "Check Generated Passwords" to view the list of stored passwords.
-
If you want to remove a specific password, select "Delete Generated Password" and follow the instructions.
-
You can select the "Exit" option to exit the program when you are done.
-
The generated passwords are stored in a file called "passwords.txt".
-
If you have problems with compilation or execution, make sure that you have a C++ compiler installed and that the source code file (main.cpp) is in the same directory as the generated executable.