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