Advertisement
mashiahd

Token Generator

Nov 13th, 2023 (edited)
118
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import string
  2. import random
  3.  
  4. # Define the characters that can be used in the token (letters and digits)
  5. characters = string.ascii_letters + string.digits
  6.  
  7. # Generate 3 random tokens
  8. tokens = []
  9. for i in range(3):
  10.     token = ''.join(random.choice(characters) for j in range(20))
  11.     tokens.append(token)
  12.  
  13. # Print the tokens
  14. print(tokens)
Tags: token
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement