Password Generator using few lines of python code

0


This python program will help you Generate your strong password and allow you to manage the same.


This uses a file called random which randomly arrange words and character .
This is a good way to create strong passwords which provide extra security to your personal or professional accounts.

This project can be also added to your Cv and will be very beneficial.

This is a quick code to build your code understanding and logic building.

If you are lazy like me copy and paste the code below and do tell in the comments if it worked.

Happy Coding

---------------------------------------------------------------------------------------------

import random 


lower = "abcdefghijklmnopqrsuvwxyz"

upper = "ABCDEFGHIJKLMNOPQRSUVWXYZ"

numbers = "123456789"

symbol = "!#$%&'()*+,-./:;<=>?@[\]^_`{|}~"


all = lower + upper + numbes + symbol 

lenght = 9 

password = "".join(random.sample(all,lenght))

print("The password you Generated is :",password)



#working 😁

-----------------------------------------------------------------------------------------------------------------------------

copy paste for direct use

import random
lower = "abcdefghijklmnopqrsuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSUVWXYZ"
numbers = "123456789"
symbol = "!#$%&'()*+,-./:;<=>?@[\]^_`{|}~"

all = lower + upper + numbes + symbol
lenght = 9
password = "".join(random.sample(all,lenght))
print("The password you Generated is :",password)


#working 😁

Post a Comment

0 Comments
Post a Comment (0)
To Top