Password Generator Using python

codepythonic
0

  Password Generator

 This simple Python project is using random and string package to generate a random string of a given length.


Installation 


  $ pip install random 

  $ pip install string 


import random
import string
total = string.ascii_letters + string.digits + string.punctuation
length = 16
password = "".join(random.sample(total, length))
print(password)








out put :
eHEW;Yj<'K[z/!rx

2J+`4\pY3N@sDHlZ

Tags:

Post a Comment

0Comments

Post a Comment (0)