()
return hashlib.sha256(os.urandom(1024)).hexdigest()
Generate random string to use as CSRF and nonce tokens.

    Returns:
        Random string.
Generate random string to use as CSRF and nonce tokens.
Generate random string to use as CSRF and nonce tokens .
def _generate_random_token():
    """Generate random string to use as CSRF and nonce tokens.

    Returns:
        Random string.
    """
    return hashlib.sha256(os.urandom(1024)).hexdigest()
def _generate_random_token ( ) : return hashlib . sha256 ( os . urandom ( 1024 ) ) . hexdigest ( )