Question: Write the Code in C program. Create a random password generator that contains a user-specified number of characters. Your program should prompt the user for
Write the Code in C program.
Create a random password generator that contains a user-specified number of characters.
- Your program should prompt the user for the desired length of the password.
Length of password:
- To create your password, use the random number generator in the stdlib.h C library. To generate random numbers, you will need the srand() and rand() functions. srand(seed) is used to "seed" the random number generator with the given integer, seed. Prompt the user for the seed to be used. Once seeded, the 'rand()' function can then be used to generate a string of integers that can be converted to characters. To ensure valid characters, your password should use the numbers corresponding to the ASCII code #33 through #126. Print out your password one character at a time with no spaces.
Example output of code with password length of 8 and a seed 16:
Length of password: Enter in seed: KQ?%Qe|G
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
