{"id":2970,"date":"2025-11-21T21:40:45","date_gmt":"2025-11-21T13:40:45","guid":{"rendered":"https:\/\/www.xfan.top\/?p=2970"},"modified":"2026-04-29T21:09:08","modified_gmt":"2026-04-29T13:09:08","slug":"dlsite-play_encrypt","status":"publish","type":"post","link":"https:\/\/www.xfan.top\/index.php\/2025\/11\/21\/2970\/","title":{"rendered":"DLsite Play\u56fe\u7247\u52a0\u5bc6\u65b9\u5f0f\u8be6\u89e3"},"content":{"rendered":"<h2>\u52a0\u5bc6\u65b9\u5f0f<\/h2>\n<blockquote>\n<p>\u5bf9\u4e8eDLsite Play\u4e0a\u7684\u4e00\u90e8\u4f5c\u54c1\uff0cDLsite\u670d\u52a1\u5668\u751f\u6210\u4e00\u4e2a<code>AES key<\/code>\uff0c\u5c06\u8fd9\u90e8\u4f5c\u54c1\u7684\u6240\u6709\u56fe\u7247\u6587\u4ef6\u90fd\u4f7f\u7528\u8fd9\u4e00\u4e2a<code>AES key<\/code>\u52a0\u5bc6\uff0c\u5e76\u5b58\u50a8\u3002<br \/>\n\u7528\u6237\u8bbf\u95ee\u65f6\uff0c\u5728\u6d4f\u89c8\u5668\u751f\u6210RSA\u5bc6\u94a5\uff08\u975e\u5bf9\u79f0\u52a0\u5bc6\uff0c\u516c\u94a5\u548c\u79c1\u94a5\uff09\uff0c\u5c06\u516c\u94a5\u4e0a\u62a5\u81f3\u670d\u52a1\u5668\uff0c\u670d\u52a1\u5668\u4f7f\u7528RSA\u516c\u94a5\u52a0\u5bc6<code>AES key<\/code>\u5e76\u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668\u3002\u6d4f\u89c8\u5668\u4f7f\u7528RSA\u79c1\u94a5\u8fd8\u539f<code>AES key<\/code>\uff0c\u518d\u4f7f\u7528<code>AES key<\/code>\u8fd8\u539f\u56fe\u7247\u6587\u4ef6\u3002<\/p>\n<\/blockquote>\n<p><strong>\u4e00\u53e5\u8bdd\u6982\u62ec\uff1a\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u4f7f\u7528RSA\u901a\u9053\u4f20\u9012AES key\uff0cAES key\u7528\u4e8e\u89e3\u5bc6\u8fd8\u539f\u56fe\u7247\u6587\u4ef6\u3002<br \/>\n<\/strong><br \/>\nUML\u5e8f\u5217\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xfan.top\/wp-content\/uploads\/2025\/11\/DLsite-RSA-AES\u56fe\u7247\u89e3\u5bc6\u8fc7\u7a0b.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" data-original=\"https:\/\/www.xfan.top\/wp-content\/uploads\/2025\/11\/DLsite-RSA-AES\u56fe\u7247\u89e3\u5bc6\u8fc7\u7a0b.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"457\" height=\"481\" class=\"alignnone size-full wp-image-2978\"  sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/div><\/p>\n<h2>\u89e3\u5bc6\u601d\u8def<\/h2>\n<p>\u8981\u60f3\u89e3\u5bc6\u56fe\u7247\u8d44\u6e90\uff0c\u6700\u76f4\u63a5\u7684\u529e\u6cd5\u662f\u83b7\u53d6\u5230AES\u5bc6\u94a5\u3002<br \/>\n\u7ecf\u8fc7\u5206\u6790\uff0c\u53d1\u73b0AES\u5bc6\u94a5\u662f\u5728\u4e3b\u7ebf\u7a0b\u8fd8\u539f\u5b8c\u6210\uff0c\u7136\u540e\u53d1\u5f80<code>Web Worker<\/code>\uff0c\u5728<code>Web Worker<\/code>\u4e2d\u8fdb\u884c\u56fe\u7247\u6570\u636e\u7684\u89e3\u5bc6\u7684\u3002<br \/>\n\u7f51\u7ad9\u6e90\u4ee3\u7801\u8c03\u7528\u4e86<code>Worker.prototype.postMessage<\/code>\u5411<code>Web Worker<\/code>\u53d1\u9001AES\u5bc6\u94a5\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5hook <code>postMessage<\/code>\u65b9\u6cd5\u4ee5\u622a\u83b7\u5305\u542bAES\u5bc6\u94a5\u7684\u6570\u636e\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5hook<code>crypto.subtle.decrypt<\/code>\u65b9\u6cd5\u6765\u622a\u83b7\u521a\u521a\u8fd8\u539f\u51fa\u6765\u7684AES\u5bc6\u94a5\u3002<br \/>\n\u8fd9\u91cc\u7ed9\u51fa\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code>const hookXorKey = () =&gt; {\n  return new Promise((resolve, reject) =&gt; {\n    \/\/ \u65b9\u6cd51\uff1ahook Worker.prototype.postMessage\n    const origPostMessage = Worker.prototype.postMessage;\n    Worker.prototype.postMessage = function (msg, ...rest) {\n      if (msg &amp;&amp; msg.param) {\n        if (msg.param.key &amp;&amp; msg.param.method === &quot;xor&quot;) {\n          Worker.prototype.postMessage = origPostMessage;\n          resolve({\n            key: msg.param.key,\n          });\n        }\n      }\n      return origPostMessage.call(this, msg, ...rest);\n    };\n    \/\/ \u65b9\u6cd52\uff1ahook crypto.subtle.decrypt\n    const originalDecrypt = crypto.subtle.decrypt;\n    crypto.subtle.decrypt = async function (algorithm, key, data) {\n      const result = await originalDecrypt.call(this, algorithm, key, data);\n      const utf8String = new TextDecoder(&#039;utf-8&#039;).decode(result);\n      resolve({\n        key: utf8String,\n      })\n      return result;\n    };\n  });\n}<\/code><\/pre>\n<p>\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u81ea\u884c\u751f\u6210RSA\u5bc6\u94a5\u5bf9\uff0c\u6a21\u62df\u8bf7\u6c42\u670d\u52a1\u5668\u6765\u5f97\u5230\u4f7f\u7528\u4f60\u81ea\u5df1\u751f\u6210\u7684RSA\u516c\u94a5\u52a0\u5bc6\u7684AES\u5bc6\u94a5\uff0c\u7136\u540e\u518d\u89e3\u5bc6\u3002<\/p>\n<p>\u4f9d\u7167\u4ee5\u4e0a\u65b9\u5f0f\u5b9e\u73b0\u7684DLsite Play\u4f5c\u54c1\u6253\u5305\u4e0b\u8f7d\u6cb9\u7334\u811a\u672c\uff1a<\/p>\n<p>Github\uff1a<a href=\"https:\/\/github.com\/cpuopt\/DLsite-Play-Downloader\" title=\"https:\/\/github.com\/cpuopt\/DLsite-Play-Downloader\">https:\/\/github.com\/cpuopt\/DLsite-Play-Downloader<\/a><br \/>\nGreasyfork\uff1a<a href=\"https:\/\/greasyfork.org\/zh-CN\/scripts\/480281-dlsite-play-downloader\" title=\"https:\/\/greasyfork.org\/zh-CN\/scripts\/480281-dlsite-play-downloader\">https:\/\/greasyfork.org\/zh-CN\/scripts\/480281-dlsite-play-downloader<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u52a0\u5bc6\u65b9\u5f0f \u5bf9\u4e8eDLsite Play\u4e0a\u7684\u4e00\u90e8\u4f5c\u54c1\uff0cDLsite\u670d\u52a1\u5668\u751f\u6210\u4e00\u4e2aAES key\uff0c\u5c06\u8fd9\u90e8\u4f5c\u54c1\u7684\u6240\u6709\u56fe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-2970","post","type-post","status-publish","format-standard","hentry","category-webappdev"],"_links":{"self":[{"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/posts\/2970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/comments?post=2970"}],"version-history":[{"count":16,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/posts\/2970\/revisions"}],"predecessor-version":[{"id":2989,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/posts\/2970\/revisions\/2989"}],"wp:attachment":[{"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/media?parent=2970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/categories?post=2970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xfan.top\/index.php\/wp-json\/wp\/v2\/tags?post=2970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}