-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandom ps.py
More file actions
19 lines (13 loc) · 829 Bytes
/
random ps.py
File metadata and controls
19 lines (13 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import random
import re
variables = '0123456789QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm~!@#$%^&*()_-+=|\}]{[]}",<.>?/'
variables_numbers = '0123456789'
variables_alphabetscaps = 'QWERTYUIOPASDFGHJKLZXCVBNM'
variables_alphabetssmall = 'qwertyuiopasdfghjklzxcvbnm'
variables_symbols = '~!@#$%^&*()_-+|\}]{[]}",<.>?/'
new_password = random.choice(variables_alphabetscaps) + random.choice(variables_numbers) + random.choice(variables_numbers) + random.choice(variables_alphabetssmall) + random.choice(variables_symbols) + random.choice(variables_alphabetssmall) + random.choice(variables_alphabetscaps) + random.choice(variables_symbols)
decision = input('Press G to generate a random complex password ')
if decision.upper() == 'G':
print('your new password is ' + str(new_password))
else:
print('Goodbye')