摘要:
import shelve import time from typing import Any def cache_data(key: str, data: Any, shelf_file: str = 'cache.db') -> None: """将数据缓存到本地 shelve 文件""" w 阅读全文
posted @ 2025-06-19 11:42
sec001
阅读(28)
评论(0)
推荐(0)
摘要:
from mitmproxy import http # 指定需要拦截的 URL 关键字(可以是完整 URL,也可以是匹配规则) TARGET_URL = "https://www.baidu.com" # 自定义返回数据 MODIFIED_CONTENT = '''{ "ID": 64246 }' 阅读全文
posted @ 2025-06-19 11:30
sec001
阅读(26)
评论(0)
推荐(0)
摘要:
import jwt import os # 密钥用于HS256加密,必须保密 SECRET_KEY = "your-secret-key-1234567890" # 请在实际使用中更换为安全的密钥 def encrypt_file(input_file, output_file): """ 使用H 阅读全文
posted @ 2025-06-19 11:13
sec001
阅读(21)
评论(0)
推荐(0)
浙公网安备 33010602011771号