How to write a program of password generator without using random?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to write a program of password generator without using random??

k=input("enter password") d=['1','2','3','4','5','6','7','8','9','0'] j=['#','@','

#x27;,'%','&','-','+'] if(len(k)<5 and len(k)>10): print("ur password must contain 5 to 9 chars") else: if(k not in d): print("ur password must contain atleast one digit") else: if(k not in j): print("ur password must contain atleast one special symbol") else: if(k in ""): print("donot enter spaces") #NOT WORKING

24th Sep 2019, 1:24 PM
Krid Indu
Krid Indu - avatar
1 Answer
+ 2
Random introduce unpredictability to make sure it's almost impossible to guess against potential attackers in specific time frame. Otherwise password generated without randomness must follow a specific pattern which defeat its purpose, no? 😉
24th Sep 2019, 1:54 PM
Zephyr Koo
Zephyr Koo - avatar