rite bash script to test for password strength: a) Write a script to check and validate passwords. The objective is to flag "weak" or easily guessed password candidates. b) The password will be provided as an argument to the script. To be considered acceptable, a password must meet the following minimum qualifications: I. Minimum length of 8 characters II. Must contain at least one numeric character III. Must contain at least one of the following non-alphabetic characters: @, #, $, %, &, *, +, -, = c) Your script should print out which tests did not pass, orprint a clear message if all tests did pass. Take a screenshot of the output. Zip up the source code (not the binaries) in a single zip file. d) Tips: a. Make sure you are using the bash shell (line 1 is #!/bin/bash). b. Use the =~ regex operator. c. Use the newer [[ ]] syntax for the conditional test expression
Write bash script to test for password strength:
a) Write a script to check and validate passwords. The objective is to flag "weak" or easily guessed password candidates.
b) The password will be provided as an argument to the script. To be considered acceptable, a password must meet the following minimum qualifications:
I. Minimum length of 8 characters
II. Must contain at least one numeric character
III. Must contain at least one of the following non-alphabetic characters: @, #, $, %, &, *, +, -, =
c) Your script should print out which tests did not pass, orprint a clear message if all tests did pass. Take a screenshot of the output. Zip up the source code (not the binaries) in a single zip file.
d) Tips:
a. Make sure you are using the bash shell (line 1 is #!/bin/bash).
b. Use the =~ regex operator.
c. Use the newer [[ ]] syntax for the conditional test expressions.
Step by step
Solved in 4 steps with 4 images