feat: added auth0 common module

This commit is contained in:
2024-11-24 18:13:58 +01:00
parent 33bdeb12a0
commit 2444269486
8 changed files with 210 additions and 1 deletions

16
creyPY/helpers.py Normal file
View File

@@ -0,0 +1,16 @@
import random
import string
def create_random_password(length: int = 12) -> str:
all_characters = string.ascii_letters + string.digits + string.punctuation
password = [
random.choice(string.ascii_lowercase),
random.choice(string.ascii_uppercase),
random.choice(string.digits),
random.choice(string.punctuation),
]
password += random.choices(all_characters, k=length - 4)
random.shuffle(password)
return "".join(password)