Skip to content
python
import secrets

# 生成一个安全的随机密钥
jwt_secret = secrets.token_urlsafe(32)  # 32表示生成的字节数,可根据需要调整
print(f"JWT_SECRET={jwt_secret}")