(length=30, chars=UNICODE_ASCII_CHARACTER_SET)
| 8 | |
| 9 | |
| 10 | def generate_token(length=30, chars=UNICODE_ASCII_CHARACTER_SET): |
| 11 | rand = random.SystemRandom() |
| 12 | return "".join(rand.choice(chars) for _ in range(length)) |
| 13 | |
| 14 | |
| 15 | def is_secure_transport(uri): |
no outgoing calls