[{"data":1,"prerenderedAt":930},["ShallowReactive",2],{"navigation_docs":3,"-classroom-basics-crypto":567,"-classroom-basics-crypto-surround":925},[4,9,14,41,272,288,390,525,557,562],{"title":5,"path":6,"stem":7,"icon":8},"首页","\u002Fwhat-is-lolia","01.what-is-lolia","i-lucide-house",{"title":10,"path":11,"stem":12,"icon":13},"文档用法","\u002Fhow-to-read-the-docs","02.how-to-read-the-docs","i-lucide-sparkles",{"title":15,"icon":16,"path":17,"stem":18,"children":19,"page":40},"导览","i-lucide-scroll-text","\u002Foverview","03.overview",[20,25,30,35],{"title":21,"path":22,"stem":23,"icon":24},"入门阅读","\u002Foverview\u002Fintroduction","03.overview\u002F1.introduction","i-lucide-book",{"title":26,"path":27,"stem":28,"icon":29},"安全提示","\u002Foverview\u002Fsecurity","03.overview\u002F2.security","i-lucide-shield-alert",{"title":31,"path":32,"stem":33,"icon":34},"实名认证","\u002Foverview\u002Fkyc","03.overview\u002F3.kyc","i-lucide-user-check",{"title":36,"path":37,"stem":38,"icon":39},"大流量内容","\u002Foverview\u002Fbig-traffic-contents","03.overview\u002F4.big-traffic-contents","i-lucide-zap",false,{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":40},"配置指南","i-lucide-sliders-horizontal","\u002Ftutorials","04.tutorials",[47,59,81,156,166,217,246],{"title":48,"path":49,"stem":50,"children":51,"icon":58},"开始之前","\u002Ftutorials\u002Fbefore-start","04.tutorials\u002F1.before-start\u002F1.index",[52,54],{"title":53,"path":49,"stem":50},"前言",{"title":55,"path":56,"stem":57},"基本操作","\u002Ftutorials\u002Fbefore-start\u002Fbasics","04.tutorials\u002F1.before-start\u002F2.basics","i-lucide-send-horizontal",{"title":60,"icon":61,"path":62,"stem":63,"children":64,"page":40},"面板","i-lucide-panels-top-left","\u002Ftutorials\u002Fdashboard","04.tutorials\u002F2.dashboard",[65,69,73,77],{"title":66,"path":67,"stem":68},"仪表盘","\u002Ftutorials\u002Fdashboard\u002Fmainpage","04.tutorials\u002F2.dashboard\u002F1.mainpage",{"title":70,"path":71,"stem":72},"隧道创建","\u002Ftutorials\u002Fdashboard\u002Fcreate-tunnel","04.tutorials\u002F2.dashboard\u002F2.create-tunnel",{"title":74,"path":75,"stem":76},"隧道管理","\u002Ftutorials\u002Fdashboard\u002Ftunnel-management","04.tutorials\u002F2.dashboard\u002F3.tunnel-management",{"title":78,"path":79,"stem":80},"域名白名单","\u002Ftutorials\u002Fdashboard\u002Fdomain-whitelist","04.tutorials\u002F2.dashboard\u002F4.domain-whitelist",{"title":82,"icon":83,"path":84,"stem":85,"children":86,"page":40},"客户端教程","i-lucide-laptop","\u002Ftutorials\u002Fclient","04.tutorials\u002F3.client",[87,112,132,144,148,152],{"title":88,"path":89,"stem":90,"children":91,"page":40},"Lolia-CLI","\u002Ftutorials\u002Fclient\u002Flolia-frpc","04.tutorials\u002F3.client\u002F1.lolia-frpc",[92,96,100,104,108],{"title":93,"path":94,"stem":95},"简介","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fintroduction","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F1.introduction",{"title":97,"path":98,"stem":99},"Docker 部署","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fdocker","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F2.docker",{"title":101,"path":102,"stem":103},"systemd 自启动","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fsystemd","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F3.systemd",{"title":105,"path":106,"stem":107},"Windows 服务","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fwindows-service","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F4.windows-service",{"title":109,"path":110,"stem":111},"OpenWrt 自启动","\u002Ftutorials\u002Fclient\u002Flolia-frpc\u002Fopenwrt","04.tutorials\u002F3.client\u002F1.lolia-frpc\u002F5.openwrt",{"title":113,"path":114,"stem":115,"children":116,"page":40},"LoliaFrpClient","\u002Ftutorials\u002Fclient\u002Floliafrpclient","04.tutorials\u002F3.client\u002F2.loliafrpclient",[117,120,124,128],{"title":93,"path":118,"stem":119},"\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fintroduction","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F1.introduction",{"title":121,"path":122,"stem":123},"Windows","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fwindows","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F2.Windows",{"title":125,"path":126,"stem":127},"Linux","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Flinux","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F3.Linux",{"title":129,"path":130,"stem":131},"Android","\u002Ftutorials\u002Fclient\u002Floliafrpclient\u002Fandroid","04.tutorials\u002F3.client\u002F2.loliafrpclient\u002F4.Android",{"title":133,"path":134,"stem":135,"children":136,"page":40},"LoliaShizuku","\u002Ftutorials\u002Fclient\u002Floliashizuku","04.tutorials\u002F3.client\u002F3.loliashizuku",[137,140],{"title":93,"path":138,"stem":139},"\u002Ftutorials\u002Fclient\u002Floliashizuku\u002Floliashizuku","04.tutorials\u002F3.client\u002F3.loliashizuku\u002F1.loliashizuku",{"title":141,"path":142,"stem":143},"快速入门","\u002Ftutorials\u002Fclient\u002Floliashizuku\u002Fusage","04.tutorials\u002F3.client\u002F3.loliashizuku\u002F2.usage",{"title":145,"path":146,"stem":147},"Kairo","\u002Ftutorials\u002Fclient\u002Fkairo","04.tutorials\u002F3.client\u002F4.kairo",{"title":149,"path":150,"stem":151},"MCSManager FRP模板","\u002Ftutorials\u002Fclient\u002Fmcsm","04.tutorials\u002F3.client\u002F5.mcsm",{"title":153,"path":154,"stem":155},"MSLX 面板插件","\u002Ftutorials\u002Fclient\u002Fmslx","04.tutorials\u002F3.client\u002F6.mslx",{"title":157,"icon":158,"path":159,"stem":160,"children":161,"page":40},"常见应用","i-lucide-toolbox","\u002Ftutorials\u002Fapp","04.tutorials\u002F4.app",[162],{"title":163,"path":164,"stem":165},"RDP 远程桌面","\u002Ftutorials\u002Fapp\u002Frdp","04.tutorials\u002F4.app\u002F1.rdp",{"title":167,"icon":168,"path":169,"stem":170,"children":171,"page":40},"游戏应用","i-lucide-gamepad-2","\u002Ftutorials\u002Fgame","04.tutorials\u002F5.game",[172,213],{"title":173,"path":174,"stem":175,"children":176,"page":40},"Minecraft","\u002Ftutorials\u002Fgame\u002Fminecraft","04.tutorials\u002F5.game\u002F1.minecraft",[177,181,185,189,193,197,201,205,209],{"title":178,"path":179,"stem":180},"Java 版局域网联机","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fmcjavalan","04.tutorials\u002F5.game\u002F1.minecraft\u002F1.mcjavalan",{"title":182,"path":183,"stem":184},"Java 版独立服务器","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fmcjavaserver","04.tutorials\u002F5.game\u002F1.minecraft\u002F2.mcjavaserver",{"title":186,"path":187,"stem":188},"Simple Voice Chat","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fsimplevoicechat","04.tutorials\u002F5.game\u002F1.minecraft\u002F3.simplevoicechat",{"title":190,"path":191,"stem":192},"外置登录联机教程","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fauthlib-injector","04.tutorials\u002F5.game\u002F1.minecraft\u002F4.authlib-injector",{"title":194,"path":195,"stem":196},"基岩版服务器（BDS）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fbedrock-nethernet","04.tutorials\u002F5.game\u002F1.minecraft\u002F5.bedrock-nethernet",{"title":198,"path":199,"stem":200},"旧版基岩版（RakNet）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fbedrock-raknet","04.tutorials\u002F5.game\u002F1.minecraft\u002F6.bedrock-raknet",{"title":202,"path":203,"stem":204},"Geyser 互通服","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fgeysermc","04.tutorials\u002F5.game\u002F1.minecraft\u002F7.geysermc",{"title":206,"path":207,"stem":208},"旧版 Geyser（RakNet）","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fgeyser-raknet","04.tutorials\u002F5.game\u002F1.minecraft\u002F8.geyser-raknet",{"title":210,"path":211,"stem":212},"SRV 解析","\u002Ftutorials\u002Fgame\u002Fminecraft\u002Fsrv-record","04.tutorials\u002F5.game\u002F1.minecraft\u002F9.srv-record",{"title":214,"path":215,"stem":216},"星露谷物语多人联机","\u002Ftutorials\u002Fgame\u002Fstardew-valley","04.tutorials\u002F5.game\u002F2.stardew-valley",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":40},"网页应用","i-lucide-link-2","\u002Ftutorials\u002Fweb","04.tutorials\u002F6.web",[223,226,230,234,238,242],{"title":141,"path":224,"stem":225},"\u002Ftutorials\u002Fweb\u002Fquick-start","04.tutorials\u002F6.web\u002F1.quick-start",{"title":227,"path":228,"stem":229},"DNS 配置","\u002Ftutorials\u002Fweb\u002Fdns-config","04.tutorials\u002F6.web\u002F2.dns-config",{"title":231,"path":232,"stem":233},"Apache","\u002Ftutorials\u002Fweb\u002Fapache","04.tutorials\u002F6.web\u002F3.apache",{"title":235,"path":236,"stem":237},"NGINX","\u002Ftutorials\u002Fweb\u002Fnginx","04.tutorials\u002F6.web\u002F4.nginx",{"title":239,"path":240,"stem":241},"获取访客真实IP","\u002Ftutorials\u002Fweb\u002Fget-realip","04.tutorials\u002F6.web\u002F5.get-realip",{"title":243,"path":244,"stem":245},"雷池WAF","\u002Ftutorials\u002Fweb\u002Fsafeline","04.tutorials\u002F6.web\u002F6.safeline",{"title":247,"icon":248,"path":249,"stem":250,"children":251,"page":40},"进阶配置","i-lucide-file-cog","\u002Ftutorials\u002Fadvanced","04.tutorials\u002F7.advanced",[252,256,260,264,268],{"title":253,"path":254,"stem":255},"配置PROXY protocol","\u002Ftutorials\u002Fadvanced\u002Fproxy-protocol","04.tutorials\u002F7.advanced\u002F1.proxy-protocol",{"title":257,"path":258,"stem":259},"双栈网络配置","\u002Ftutorials\u002Fadvanced\u002Fmixed-v4-v6","04.tutorials\u002F7.advanced\u002F2.mixed-v4-v6",{"title":261,"path":262,"stem":263},"AutoTLS","\u002Ftutorials\u002Fadvanced\u002Fautotls","04.tutorials\u002F7.advanced\u002F3.autotls",{"title":265,"path":266,"stem":267},"多个隧道创建和使用","\u002Ftutorials\u002Fadvanced\u002Fmulti-tunnel","04.tutorials\u002F7.advanced\u002F4.multi-tunnel",{"title":269,"path":270,"stem":271},"使用自己的域名","\u002Ftutorials\u002Fadvanced\u002Fcname","04.tutorials\u002F7.advanced\u002F5.cname",{"title":273,"icon":274,"defaultOpen":40,"path":275,"stem":276,"children":277,"page":40},"开发者","i-lucide-folder-code","\u002Fdevelopers","05.developers",[278,283],{"title":279,"path":280,"stem":281,"icon":282},"LoliaFRP Open API","\u002Fdevelopers\u002Fopenapi","05.developers\u002F1.openapi","i-lucide-webhook",{"title":284,"path":285,"stem":286,"icon":287},"OAuth2 鉴权","\u002Fdevelopers\u002Foauth","05.developers\u002F2.oauth","i-lucide-fingerprint-pattern",{"title":289,"icon":290,"defaultOpen":40,"path":291,"stem":292,"children":293,"page":40},"疑难解答","i-lucide-bug-off","\u002Ftroubleshooting","06.troubleshooting",[294,319,329,338,359,372],{"title":48,"icon":295,"path":296,"stem":297,"children":298,"page":40},"i-lucide-list-checks","\u002Ftroubleshooting\u002Fbefore-start","06.troubleshooting\u002F1.before-start",[299,303,307,311,315],{"title":300,"path":301,"stem":302},"通用问题","\u002Ftroubleshooting\u002Fbefore-start\u002Fgeneral","06.troubleshooting\u002F1.before-start\u002F1.general",{"title":304,"path":305,"stem":306},"如何提问","\u002Ftroubleshooting\u002Fbefore-start\u002Fhow-to-ask-questions","06.troubleshooting\u002F1.before-start\u002F2.how-to-ask-questions",{"title":308,"path":309,"stem":310},"分析日志","\u002Ftroubleshooting\u002Fbefore-start\u002Fread-the-logs","06.troubleshooting\u002F1.before-start\u002F3.read-the-logs",{"title":312,"path":313,"stem":314},"定位问题","\u002Ftroubleshooting\u002Fbefore-start\u002Fclassify-questions","06.troubleshooting\u002F1.before-start\u002F4.classify-questions",{"title":316,"path":317,"stem":318},"平台限制","\u002Ftroubleshooting\u002Fbefore-start\u002Fplatform-limits","06.troubleshooting\u002F1.before-start\u002F5.platform-limits",{"title":320,"icon":321,"path":322,"stem":323,"children":324,"page":40},"客户端故障","i-custom-laptop-off","\u002Ftroubleshooting\u002Fclient","06.troubleshooting\u002F3.client",[325],{"title":326,"path":327,"stem":328},"杀软误报","\u002Ftroubleshooting\u002Fclient\u002Fanti-malware","06.troubleshooting\u002F3.client\u002Fanti-malware",{"title":157,"icon":330,"path":331,"stem":332,"children":333,"page":40},"i-custom-toolbox-off","\u002Ftroubleshooting\u002Fapp","06.troubleshooting\u002F4.app",[334],{"title":335,"path":336,"stem":337},"远程桌面","\u002Ftroubleshooting\u002Fapp\u002Frdp","06.troubleshooting\u002F4.app\u002F1.rdp",{"title":167,"icon":339,"path":340,"stem":341,"children":342,"page":40},"i-custom-gamepad-2-off","\u002Ftroubleshooting\u002Fgames","06.troubleshooting\u002F5.games",[343,347],{"title":344,"path":345,"stem":346},"Stardew Valley","\u002Ftroubleshooting\u002Fgames\u002Fstardew-valley","06.troubleshooting\u002F5.games\u002F2.stardew-valley",{"title":173,"path":348,"stem":349,"children":350,"page":40},"\u002Ftroubleshooting\u002Fgames\u002Fminecraft","06.troubleshooting\u002F5.games\u002Fminecraft",[351,355],{"title":352,"path":353,"stem":354},"Mc Lan","\u002Ftroubleshooting\u002Fgames\u002Fminecraft\u002Fmc-lan","06.troubleshooting\u002F5.games\u002Fminecraft\u002F1.mc-lan",{"title":356,"path":357,"stem":358},"Minecraft Java SRV与forced hosts搭配","\u002Ftroubleshooting\u002Fgames\u002Fminecraft\u002Fminecraft-srv-forced-hosts","06.troubleshooting\u002F5.games\u002Fminecraft\u002F1.minecraft-srv-forced-hosts",{"title":360,"icon":361,"path":362,"stem":363,"children":364,"page":40},"Web 应用","i-lucide-globe-off","\u002Ftroubleshooting\u002Fweb","06.troubleshooting\u002F6.web",[365,368],{"title":231,"path":366,"stem":367},"\u002Ftroubleshooting\u002Fweb\u002Fapache","06.troubleshooting\u002F6.web\u002F1.apache",{"title":369,"path":370,"stem":371},"Nginx","\u002Ftroubleshooting\u002Fweb\u002Fnginx","06.troubleshooting\u002F6.web\u002F2.nginx",{"title":373,"icon":374,"path":375,"stem":376,"children":377,"page":40},"网络问题","i-lucide-wifi-off","\u002Ftroubleshooting\u002Fnetwork","06.troubleshooting\u002F8.network",[378,382,386],{"title":379,"path":380,"stem":381},"无法连接服务器","\u002Ftroubleshooting\u002Fnetwork\u002Fremote","06.troubleshooting\u002F8.network\u002F1.remote",{"title":383,"path":384,"stem":385},"无法连接至本地服务","\u002Ftroubleshooting\u002Fnetwork\u002Flocal","06.troubleshooting\u002F8.network\u002F2.local",{"title":387,"path":388,"stem":389},"网络卡顿","\u002Ftroubleshooting\u002Fnetwork\u002Flags","06.troubleshooting\u002F8.network\u002F3.lags",{"title":391,"icon":392,"defaultOpen":40,"path":393,"stem":394,"children":395,"page":40},"用户手册","i-lucide-book-bookmark","\u002Freferences","07.references",[396,453,480,513],{"title":397,"icon":61,"path":398,"stem":399,"children":400,"page":40},"网页控制台","\u002Freferences\u002Fplatform","07.references\u002F1.platform",[401,404,415,423,440],{"title":66,"path":402,"stem":403},"\u002Freferences\u002Fplatform\u002Fdashboard","07.references\u002F1.platform\u002F1.dashboard",{"title":405,"path":406,"stem":407,"children":408,"page":40},"隧道","\u002Freferences\u002Fplatform\u002Ftunnel","07.references\u002F1.platform\u002F2.tunnel",[409,412],{"title":74,"path":410,"stem":411},"\u002Freferences\u002Fplatform\u002Ftunnel\u002Ftunnel-management","07.references\u002F1.platform\u002F2.tunnel\u002F1.tunnel-management",{"title":70,"path":413,"stem":414},"\u002Freferences\u002Fplatform\u002Ftunnel\u002Fcreate-tunnel","07.references\u002F1.platform\u002F2.tunnel\u002F2.create-tunnel",{"title":416,"path":417,"stem":418,"children":419,"page":40},"域名管理","\u002Freferences\u002Fplatform\u002Fdomain-management","07.references\u002F1.platform\u002F3.domain-management",[420],{"title":78,"path":421,"stem":422},"\u002Freferences\u002Fplatform\u002Fdomain-management\u002Fwhitelist","07.references\u002F1.platform\u002F3.domain-management\u002F1.whitelist",{"title":424,"path":425,"stem":426,"children":427,"page":40},"OAuth","\u002Freferences\u002Fplatform\u002Foauth","07.references\u002F1.platform\u002F4.oauth",[428,432,436],{"title":429,"path":430,"stem":431},"应用管理","\u002Freferences\u002Fplatform\u002Foauth\u002Fapp-management","07.references\u002F1.platform\u002F4.oauth\u002F1.app-management",{"title":433,"path":434,"stem":435},"创建应用","\u002Freferences\u002Fplatform\u002Foauth\u002Fcreate-app","07.references\u002F1.platform\u002F4.oauth\u002F2.create-app",{"title":437,"path":438,"stem":439},"授权管理","\u002Freferences\u002Fplatform\u002Foauth\u002Fauthorizations","07.references\u002F1.platform\u002F4.oauth\u002F3.authorizations",{"title":441,"path":442,"stem":443,"children":444,"page":40},"账户设置","\u002Freferences\u002Fplatform\u002Fsettings","07.references\u002F1.platform\u002F5.settings",[445,449],{"title":446,"path":447,"stem":448},"基础设置","\u002Freferences\u002Fplatform\u002Fsettings\u002Fsettings","07.references\u002F1.platform\u002F5.settings\u002F1.settings",{"title":450,"path":451,"stem":452},"安全性","\u002Freferences\u002Fplatform\u002Fsettings\u002Fsecurity","07.references\u002F1.platform\u002F5.settings\u002F2.security",{"title":454,"icon":455,"path":456,"stem":457,"children":458},"命令行客户端","i-lucide-square-terminal","\u002Freferences\u002Flolia-frpc","07.references\u002F2.lolia-frpc\u002Findex",[459,461,465,469,472,476],{"title":460,"path":456,"stem":457},"概览",{"title":462,"path":463,"stem":464},"启动与连接","\u002Freferences\u002Flolia-frpc\u002Fstartup","07.references\u002F2.lolia-frpc\u002F2.startup",{"title":466,"path":467,"stem":468},"参数与子命令","\u002Freferences\u002Flolia-frpc\u002Fflags","07.references\u002F2.lolia-frpc\u002F3.flags",{"title":261,"path":470,"stem":471},"\u002Freferences\u002Flolia-frpc\u002Fautotls","07.references\u002F2.lolia-frpc\u002F4.autotls",{"title":473,"path":474,"stem":475},"运行与诊断","\u002Freferences\u002Flolia-frpc\u002Fruntime","07.references\u002F2.lolia-frpc\u002F5.runtime",{"title":477,"path":478,"stem":479},"构建与发布","\u002Freferences\u002Flolia-frpc\u002Frelease","07.references\u002F2.lolia-frpc\u002F6.release",{"title":481,"icon":482,"path":483,"stem":484,"children":485,"page":40},"图形化客户端","i-lucide-app-window-mac","\u002Freferences\u002Fgui","07.references\u002F3.gui",[486,502,510],{"title":113,"path":487,"stem":488,"children":489,"page":40},"\u002Freferences\u002Fgui\u002Floliafrpclient","07.references\u002F3.gui\u002F1.loliafrpclient",[490,493,496,499],{"title":93,"path":491,"stem":492},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fintroduction","07.references\u002F3.gui\u002F1.loliafrpclient\u002F1.introduction",{"title":121,"path":494,"stem":495},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fwindows","07.references\u002F3.gui\u002F1.loliafrpclient\u002F2.Windows",{"title":125,"path":497,"stem":498},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Flinux","07.references\u002F3.gui\u002F1.loliafrpclient\u002F3.Linux",{"title":129,"path":500,"stem":501},"\u002Freferences\u002Fgui\u002Floliafrpclient\u002Fandroid","07.references\u002F3.gui\u002F1.loliafrpclient\u002F4.Android",{"title":133,"path":503,"stem":504,"children":505,"page":40},"\u002Freferences\u002Fgui\u002Floliashizuku","07.references\u002F3.gui\u002F2.loliashizuku",[506],{"title":507,"path":508,"stem":509},"桌面端功能","\u002Freferences\u002Fgui\u002Floliashizuku\u002Fusage","07.references\u002F3.gui\u002F2.loliashizuku\u002F2.usage",{"title":145,"path":511,"stem":512},"\u002Freferences\u002Fgui\u002Fkairo","07.references\u002F3.gui\u002F3.kairo",{"title":514,"icon":515,"path":516,"stem":517,"children":518,"page":40},"面板客户端","i-lucide-app-window","\u002Freferences\u002Fweb","07.references\u002F4.web",[519,522],{"title":149,"path":520,"stem":521},"\u002Freferences\u002Fweb\u002Fmcsm","07.references\u002F4.web\u002F1.mcsm",{"title":153,"path":523,"stem":524},"\u002Freferences\u002Fweb\u002Fmslx","07.references\u002F4.web\u002F2.mslx",{"title":526,"icon":527,"defaultOpen":40,"path":528,"stem":529,"children":530,"page":40},"扩展阅读","i-lucide-school","\u002Fclassroom","08.classroom",[531,535],{"title":93,"path":532,"stem":533,"icon":534},"\u002Fclassroom\u002Fabout","08.classroom\u002F1.about","i-lucide-text-initial",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":40},"相关原理","i-lucide-library","\u002Fclassroom\u002Fbasics","08.classroom\u002F2.basics",[541,545,549,553],{"title":542,"path":543,"stem":544},"frp 的工作基础","\u002Fclassroom\u002Fbasics\u002Ffrp-base","08.classroom\u002F2.basics\u002F1.frp-base",{"title":546,"path":547,"stem":548},"TLS 与证书","\u002Fclassroom\u002Fbasics\u002Ftls","08.classroom\u002F2.basics\u002F2.tls",{"title":550,"path":551,"stem":552},"密码学基础","\u002Fclassroom\u002Fbasics\u002Fcrypto","08.classroom\u002F2.basics\u002F3.crypto",{"title":554,"path":555,"stem":556},"HTTP 虚拟主机","\u002Fclassroom\u002Fbasics\u002Fhttp-vhost","08.classroom\u002F2.basics\u002F4.http-vhost",{"title":558,"path":559,"stem":560,"icon":561},"参与贡献","\u002Fcontributing","09.contributing","i-lucide-git-pull-request-arrow",{"title":563,"path":564,"stem":565,"icon":566},"社区","\u002Fcommunity","10.community","i-lucide-users",{"id":568,"title":550,"body":569,"description":918,"extension":919,"links":920,"meta":921,"navigation":922,"path":551,"seo":923,"stem":552,"__hash__":924},"docs\u002F08.classroom\u002F2.basics\u002F3.crypto.md",{"type":570,"value":571,"toc":906},"minimark",[572,580,585,640,644,648,651,664,667,674,678,689,692,696,699,702,706,709,712,716,723,787,809,824,828,886,890],[573,574,575,576,579],"tip",{},"本文只讲算法，不涉及协议流程与配置。握手各步骤与证书见 ",[577,578,546],"a",{"href":547},"。",[581,582,584],"h2",{"id":583},"_1-两类密码","1. 两类密码",[586,587,588,603],"table",{},[589,590,591],"thead",{},[592,593,594,597,600],"tr",{},[595,596],"th",{},[595,598,599],{},"对称",[595,601,602],{},"非对称",[604,605,606,618,629],"tbody",{},[592,607,608,612,615],{},[609,610,611],"td",{},"密钥",[609,613,614],{},"一把，双方共用",[609,616,617],{},"一对，公钥可公开、私钥自持",[592,619,620,623,626],{},[609,621,622],{},"速度",[609,624,625],{},"快，能处理海量数据",[609,627,628],{},"慢，通常只处理几十字节",[592,630,631,634,637],{},[609,632,633],{},"解决什么",[609,635,636],{},"保密与完整性",[609,638,639],{},"密钥分发与身份",[641,642,643],"p",{},"TLS 的分工很明确：非对称只用来协商会话密钥、并证明服务器身份，真正承运数据的是对称加密。",[581,645,647],{"id":646},"_2-密钥交换","2. 密钥交换",[641,649,650],{},"DH（Diffie-Hellman）让双方各自生成一个私下数值并算出对应的公开值，交换公开值后各算一次，得到同一个共享秘密，而这个秘密从未在链路上传输过。",[641,652,653,654,658,659,663],{},"前缀 ",[655,656,657],"code",{},"E"," 表示 ephemeral，即每次连接都换一对新的临时密钥。由此带来",[660,661,662],"strong",{},"前向保密","：服务器的长期私钥日后泄露，也解不开之前录下的流量，因为当时的临时私钥早已丢弃。",[641,665,666],{},"RSA 密钥交换是另一种做法：客户端自己生成会话密钥，用服务器公钥加密后发过去。只要服务器私钥还在，历史流量就能被解开，因此 TLS 1.3 已经把它移除，只保留 (EC)DHE。",[641,668,669,670,673],{},"ECDH 是同一套运算在椭圆曲线上的形式，参数短、算得快，所以现代部署基本都是 ECDHE；",[655,671,672],{},"DHE","（有限域）仍有实现，但性能差得多。",[581,675,677],{"id":676},"_3-kem","3. KEM",[641,679,680,681,684,685,688],{},"严格说 DH\u002FECDH 属于",[660,682,683],{},"密钥协商","：双方各算一次，结果相同。KEM 是另一种模型——一方用对方的公钥把随机密钥",[660,686,687],{},"封装","成密文，另一方用自己的私钥解封得到同一个密钥。",[641,690,691],{},"两者正在 TLS 1.3 里被拼起来用：后量子的 ML-KEM 与传统的 X25519 组合成混合方案，一条连接同时依赖两种难题的安全性。",[581,693,695],{"id":694},"_4-对称加密与-aead","4. 对称加密与 AEAD",[641,697,698],{},"握手谈定会话密钥后，数据由对称加密承运。TLS 1.3 只允许 AEAD 类算法，如 AES-GCM 与 ChaCha20-Poly1305：一次运算同时给出密文与认证标签，被改过一个字节都会被拒绝。",[641,700,701],{},"TLS 还给每条记录编号，并把序号纳入运算，因此重放、重排、截断都能被发现。",[581,703,705],{"id":704},"_5-密钥派生","5. 密钥派生",[641,707,708],{},"共享秘密不会被直接当作会话密钥。TLS 1.2 把它与双方随机数一起送入 PRF 派生出主密钥；TLS 1.3 用 HKDF，逐步把共享秘密与整段握手记录的哈希扩展开。派生出的不止一把：握手一把、应用数据一把，两个方向再各分开。",[641,710,711],{},"这样每段数据用不同的密钥，某一把泄露不会牵连其他阶段；双方随机数参与其中，也让每次连接的结果都不同。",[581,713,715],{"id":714},"_6-密码套件怎么读","6. 密码套件怎么读",[641,717,718,719,722],{},"TLS 1.2 的套件名由几段拼成，例如 ",[655,720,721],{},"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","：",[586,724,725,735],{},[589,726,727],{},[592,728,729,732],{},[595,730,731],{},"段",[595,733,734],{},"含义",[604,736,737,747,757,767,777],{},[592,738,739,744],{},[609,740,741],{},[655,742,743],{},"TLS",[609,745,746],{},"协议",[592,748,749,754],{},[609,750,751],{},[655,752,753],{},"ECDHE",[609,755,756],{},"密钥交换算法",[592,758,759,764],{},[609,760,761],{},[655,762,763],{},"ECDSA",[609,765,766],{},"认证用的签名算法",[592,768,769,774],{},[609,770,771],{},[655,772,773],{},"AES_128_GCM",[609,775,776],{},"对称加密算法与模式",[592,778,779,784],{},[609,780,781],{},[655,782,783],{},"SHA256",[609,785,786],{},"PRF 使用的哈希",[641,788,789,790,793,794,797,798,800,801,804,805,808],{},"认证段也可能写成 ",[655,791,792],{},"RSA","，如 ",[655,795,796],{},"TLS_ECDHE_RSA_WITH_…","，同样表示签名，具体策略通常是 RSA-PSS；",[655,799,763],{},"、",[655,802,803],{},"ED25519"," 同理，都只表示签名，不表示用它们加密数据。而以 ",[655,806,807],{},"TLS_RSA_WITH_…"," 开头的套件是静态 RSA 密钥交换，TLS 1.3 已移除。",[641,810,811,812,815,816,819,820,823],{},"TLS 1.3 把套件名压到两段，例如 ",[655,813,814],{},"TLS_AES_128_GCM_SHA256","：密钥交换由 ",[655,817,818],{},"supported_groups"," 扩展单独协商，签名算法由 ",[655,821,822],{},"signature_algorithms"," 扩展单独协商，套件名里只剩对称加密与哈希。",[581,825,827],{"id":826},"_7-对照","7. 对照",[586,829,830,840],{},[589,831,832],{},[592,833,834,837],{},[595,835,836],{},"握手里的一步",[595,838,839],{},"用到的密码",[604,841,842,850,858,870,878],{},[592,843,844,847],{},[609,845,846],{},"选版本与密码套件",[609,848,849],{},"无，纯协商",[592,851,852,855],{},[609,853,854],{},"交换临时公钥",[609,856,857],{},"(EC)DHE，或混合 KEM",[592,859,860,863],{},[609,861,862],{},"证明身份",[609,864,865,866,869],{},"证书链验签 + ",[655,867,868],{},"CertificateVerify"," 签名",[592,871,872,875],{},[609,873,874],{},"导出会话密钥",[609,876,877],{},"HKDF \u002F PRF",[592,879,880,883],{},[609,881,882],{},"传输应用数据",[609,884,885],{},"AEAD 对称加密",[581,887,889],{"id":888},"_8-结论","8. 结论",[891,892,893,897,900,903],"ul",{},[894,895,896],"li",{},"非对称负责「谈」，对称负责「运」",[894,898,899],{},"(EC)DHE 的临时密钥带来前向保密，RSA 密钥交换没有，已被 1.3 移除",[894,901,902],{},"现代 TLS 只用 AEAD，并靠记录序号防重放",[894,904,905],{},"套件名就是一句话：用什么协商、用什么证明、用什么加密、用什么派生",{"title":907,"searchDepth":908,"depth":908,"links":909},"",2,[910,911,912,913,914,915,916,917],{"id":583,"depth":908,"text":584},{"id":646,"depth":908,"text":647},{"id":676,"depth":908,"text":677},{"id":694,"depth":908,"text":695},{"id":704,"depth":908,"text":705},{"id":714,"depth":908,"text":715},{"id":826,"depth":908,"text":827},{"id":888,"depth":908,"text":889},"TLS 用到的两类密码：密钥交换与前向保密、AEAD、密钥派生，以及密码套件名字的读法","md",null,{},true,{"title":550,"description":918},"5pjHbm-Gq4jUJVk5JuEdsbeqyblB--rRSqOFt4_DPnc",[926,928],{"title":546,"path":547,"stem":548,"description":927,"children":-1},"TLS 如何证明服务器身份、证书的 SAN 匹配规则、TLS 1.3 的握手流程与双向认证（mTLS）",{"title":554,"path":555,"stem":556,"description":929,"children":-1},"节点如何用一个端口按域名把请求分给不同隧道，以及 Host 与 SNI 的区别",1795152100338]