1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Compare commits

..

No commits in common. "bb31c09d252937bf1ee05f2bf1fa6bd0428befc2" and "f620b88f73f879d02c7febc13f0d4a1ad04200b9" have entirely different histories.

View file

@ -1,13 +1,5 @@
import secrets
import random
import string
generated_key = secrets.token_urlsafe(50)
print(''.join(generated_key))
### Use for old python versions < 3.6
##import random
##import string
#
##haystack = string.ascii_letters + string.digits + string.punctuation
##print(''.join([random.SystemRandom().choice(haystack.replace('/', '').replace('\'', '').replace('\"', '')) for _ in range(50)]))
haystack = string.ascii_letters + string.digits + string.punctuation
print(''.join([random.SystemRandom().choice(haystack.replace('/', '').replace('\'', '').replace('\"', '')) for _ in range(50)]))