Token

A token is an object which can represent:

  • a reference to a specific object

  • the right to perform an operation

Python Example

There are a number of different uses for the token concept in Python. Information can be found here.

# Generate tokens using the secrets module.
import secrets
token1 = token_bytes(16)
token2 = token_hex(16)
token3 = token_urlsafe(16)

# Define tokens to represent objects.
t1 = [1, 4, 6]
t2 = "very"
t3 = "good"