Generate secure random numbers for managing secrets - Python secrets token_urlsafe ([nbytes=None]) ¶ Return a random URL-safe text string, containing nbytes random bytes The text is Base64 encoded, so on average each byte results in approximately 1 3 characters