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.
bb31c09d25
...
f620b88f73
1 changed files with 4 additions and 12 deletions
|
|
@ -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)]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue