Python Password Generator
This commit is contained in:
10
python-password-generator.py
Normal file
10
python-password-generator.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import random
|
||||
import string
|
||||
|
||||
total = string.ascii_letters + string.digits + string.punctuation
|
||||
|
||||
length = 16
|
||||
|
||||
password = "".join(random.sample(total, length))
|
||||
|
||||
print(password)
|
||||
Reference in New Issue
Block a user