Question: Write a Java program to prompt the user to set up a password. The user needs to enter the password twice and the two passwords

Write a Java program to prompt the user to set up a password. The user needs to enter the password twice and the two passwords should match under case-sensitive comparison. The password should also satisfy the following requirements:

  1. Contains at least 8 characters and at most 30 characters
  2. Contains both uppercase and lowercase letters and a number digit (0,1,,9)
  3. Contains at least one of 17 special characters (!,#,$,%,&,(,),[,],{,},+,-,=,~,_,@)
  4. Contains none of the 3000 uncommon passwords in the attached file below called uncommon_passwords.txt as a substring. If English characters are involved, then case insensitive comparison should be used. For example, the password ab2S$xyz is considered to contain 2s$ as a substring.

uncommon_passwords.txt {OK(P}s=lqI4 xXUf3HhJ NjQveP sKO]$R{XNkdiUTJ -k6dD u#[!y_i(5Kz7FJD{Q iJ#[~- T[I3ozxPm hmnr ao&q0yjL%M8_)E 3qLZ (cyKD{oT3)h&wSk5 &A(Br)wRiO{Zo [CpKwJVnz] 9I6DCez&wV+ C$c UiNKt -owDjXspO~ke=Jx() 9!kV{ sJ1TE3tP XFoS60#]jKPZ QXEoc$# gSkbpI&m+0~BXKH plZk3a-o 02)~JEO4s{#Yk]&3 t@!8wj7 yiX}+Dh %3Y{pQ#Tr 3eKXnbIVd#@QRg& 41Af)U]J$8n(w

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!