- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPythonRandomSenha.py
More file actions
Latest commit
35 lines (23 loc) · 666 Bytes
/
Copy pathPythonRandomSenha.py
File metadata and controls
35 lines (23 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/python
importrandom
lower='abcdefjhijlmnopqrstuvwxyz'
upper="ABCDEFGHIJLMNOPQRSTUVWXYZ"
number="0123456789"
symbol="{}[]:;/*+|!@#$%^&~"
all=lower+upper+number+symbol
# definindo o numero de caracteres
lenght=24
# mixando os caracteres e definindo o tamanho em números
password=''.join(random.sample(all, lenght))
listaPassword= []
listaPassword.append(password)
print(password)
print(listaPassword)
aList= [123, 'xyz', 'zara', 'abc'];
aList.append( password );
print("Updated List : ", aList)
# A6YrzjU3iuFad79oJvch8&l^
# c0+{]2SxZOD&I@Ce5v1#:NWuq
# Va96O#/xT;J0j}~WQ:h[8M34
# play list youtube
# https://youtu.be/qFLhGq0060w