Password Suggesting Code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Password Suggesting Code

The aim is to create a code that can suggest to a user, different passwords using these criteria 1. Password must be at least 13 character long 2. Password must contain numbers 3. Password must contain symbols 4. Password must not have space The code should be able to suggest the password, show the characters to the user, it should also have a spin option for the user to choose another suggestion if the current one is not acceptable by the user, should try not to suggest a particular code to a user more than once, and if the user should accept a particular suggestion, then it should automatically input the suggestion into the password input area, the suggestion code should be called up if the user starts to input a password. Please note, I am not a pro, currently I have some basic understanding of Javascript, Html and Css, so all codes should be limited to only those three languages. Remember to include comments while coding, so I can follow up. Thanks in advance

4th Oct 2019, 11:50 PM
Mehzie
Mehzie - avatar
5 Answers
+ 1
Have you tried first to make this code. If not then try first. If you are facing any problem then tell us here.
4th Oct 2019, 11:58 PM
A͢J
A͢J - avatar
+ 1
Placeholder and js
5th Oct 2019, 7:28 AM
Tochukwu 🇳🇬
Tochukwu 🇳🇬 - avatar
0
Am trying to fully learn and understand how to integrate Javascript into html, please be nice to me, am so eager to learn more
4th Oct 2019, 11:53 PM
Mehzie
Mehzie - avatar
0
This is an idea, but how to start still seems miles away from me, that's why I need help.
5th Oct 2019, 12:00 AM
Mehzie
Mehzie - avatar
0
import random uppercase_letters ="ABCDEFGHIJKLMNOPQRSTUVWXYZ" lowercase_letters= uppercase_letters.lower() digits= "0123456789" symbols= "()[]{},;:,-_/\\?+*#" upper,lower,nums,syms =True ,True,True,True all = "" if upper: all += uppercase_letters if lower: all += lowercase_letters if nums: all+= digits if syms: all += symbols length =13 ammount=1 for i in range(ammount): password= " ".join (random.sample(all,length)) print (password ) print("password created automatic.")
20th Apr 2024, 3:51 AM
turab nomanbhai
turab nomanbhai - avatar