CryptoDM/token_gen.py

12 lines
180 B
Python
Raw Normal View History

2024-07-18 15:34:40 +00:00
from db import *
from uuid import uuid4
db = read()
token = str(uuid4())
db['tokens'].append(token)
write(db)
print(f'Сгенерирован новый токен: {token}')