Skip to content
Snippets Groups Projects
Verified Commit cc49e32b authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Change function name get_password->generate_password

parent fe958fa0
No related branches found
No related tags found
1 merge request!37ENH: add function that generates passwords
Pipeline #17041 passed
......@@ -111,7 +111,7 @@ def get_server_property(key):
return get_server_properties()[key]
def get_password(length: int):
def generate_password(length: int):
""" creates a random password that fulfills the security requirements """
sample_letters = string.ascii_letters + string.digits + "!#$%*+-/:;?_"
password = ''.join((random.choice(sample_letters) for i in range(length)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment