The program consists of a password generator which will generate 2-5 words based on the user input. The program utilizes four 500-word dictionaries consisting of 4, 5, 6 and 7 letter long. Random words from a random dictionary will be choosen by the program and will display it to the user at each iteration. At the end of the execution, a full password will be presented to the user which will be separated with a hyphen.
stdout: Your password is: pretty-dice-tailors
The program verifies if the parameter specified by the user is within the given ranges
Number of words – x, where 2 < x < 5
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. Download it here.
It is an extension provided by Microsoft that support visual studio code. It helps in IntelliSence, debugging and code browsing of the programming code in the visual studio.
For Linux:
GCC
For Windows:
Download MinGW-w64 Compiler.
GCC via Mingw-w64
During installation, check the Mingw32-base package and Ming32-gcc-g++ package to run and compile the C/ C++ program in the visual studio code editor.
After installation is complete, in the System Variables Path, add C:\MinGW\bin.
To verify that the MinGW has been successfully installed in the system, type the following command in the Command Prompt.
gcc --version
For Mac:
Clang for XCode
To run the code, simply open Password generator.c file in Visual Studio Code and click on Run.
👤 Rohan Bhautoo
- Github: @rohan-bhautoo
- LinkedIn: @rohan-bhautoo
Give a ⭐️ if this project helped you!