-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (29 loc) · 794 Bytes
/
main.py
File metadata and controls
32 lines (29 loc) · 794 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
from ui.password_generator_ui import *
if __name__ == "__main__":
window.mainloop()
# Logica medinate la consola
# import string
# import secrets
#
#
# def generate_password(length=12):
# alphabet = string.ascii_letters + string.digits + string.punctuation
# while True:
# password = "".join(secrets.choice(alphabet) for i in range(length))
# if (
# any(c.islower() for c in password)
# and any(c.isupper() for c in password)
# and any(c.isdigit() for c in password)
# and any(c in string.punctuation for c in password)
# ):
# break
# return password
#
#
# def main():
# password = generate_password()
# print("La contraseña generada es:", password)
#
#
# if __name__ == "__main__":
# main()