# 锁链战记Chain Chronicle的.bdl文件（实际是加密的AB资源包）解密求助

**URL:** <https://live2dhub.com/t/topic/3792>\
**Category:** 讨论\
**Created:** [2024 年11 月 8 日 12:29 UTC](https://live2dhub.com/t/topic/3792 "2024-11-08T12:29:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![HelloWorld](https://live2dhub.com/user_avatar/live2dhub.com/helloworld/32/4344_2.png) [@HelloWorld](https://live2dhub.com/u/HelloWorld)\
发布日期： [2024 年11 月 8 日 12:29 UTC](https://live2dhub.com/t/topic/3792/1 "2024-11-08T12:29:48Z")

</div>

在网上找到了相关解密方法，但时间过长密钥可能已经更换了[https://www.perfare.net/archives/203](https://www.perfare.net/archives/203)  
这是解密之后的文件头，但无法用assetstudio获取资产

 ![Snipaste_2024-11-08_20-27-16](https://live2dhub.com/uploads/default/original/2X/8/8a2afa92edf80b2e030616d41ffd887b43cf3cc6.png)  
大佬看看能不能推敲出新的解密方法，最后附上源文件  
[Character.zip](https://live2dhub.com/uploads/short-url/1eBsjPOGXYM9WABg34O66Ke5NLo.zip) (748.9 KB)  
备注：bdl文件是Unity3D的资源文件，解密以后直接上disunity就行，其中会解出一种.ktx文件，用PVRTexTool可以转换成png

---

<div class="post-metadata">

作者： ![nihoto](https://live2dhub.com/letter_avatar_proxy/v4/letter/n/9de053/32.png) [@nihoto](https://live2dhub.com/u/nihoto)\
发布日期： [2024 年11 月 12 日 12:25 UTC](https://live2dhub.com/t/topic/3792/2 "2024-11-12T12:25:49Z")

</div>

路過提示一下:  
bdl文件密鑰:  
xor\_jp=63b7e7868d11e4a460aebc  
xor\_cn=aebc63b7e7868d11e4a460  
同原文章解密前256個字節。解密後直接用AssetStudio即可

---

<div class="post-metadata">

作者： ![HelloWorld](https://live2dhub.com/user_avatar/live2dhub.com/helloworld/32/4344_2.png) [@HelloWorld](https://live2dhub.com/u/HelloWorld)\
发布日期： [2024 年11 月 13 日 05:32 UTC](https://live2dhub.com/t/topic/3792/3 "2024-11-13T05:32:44Z")

</div>

可行，用的xor\_cn，奇怪我明明下的是日服的版本怎么会是cn的key

---

<div class="post-metadata">

作者： ![HelloWorld](https://live2dhub.com/user_avatar/live2dhub.com/helloworld/32/4344_2.png) [@HelloWorld](https://live2dhub.com/u/HelloWorld)\
发布日期： [2024 年11 月 13 日 05:33 UTC](https://live2dhub.com/t/topic/3792/4 "2024-11-13T05:33:14Z")

</div>

另外大佬，这个xor key是怎么取出来的

---

<div class="post-metadata">

作者： ![nihoto](https://live2dhub.com/letter_avatar_proxy/v4/letter/n/9de053/32.png) [@nihoto](https://live2dhub.com/u/nihoto)\
发布日期： [2024 年11 月 15 日 13:27 UTC](https://live2dhub.com/t/topic/3792/5 "2024-11-15T13:27:38Z")

</div>

這邊幫你的問題做點解答  
(1)該遊戲有驗ip，無論是用日服，歐服，月球服，銀河服，只要沒有用機場，他就會將你遣返回國。(事實上大多外國手游，例如band dream或project sekai 都是如此)

(2)這遊戲加密和這篇帖子是相通的

> [@咏月风雅对游戏内的live2d单独进行了加密](https://live2dhub.com/t/topic/3475/8):
>
> 這個遊戲這邊今年6月解過，實際上他每個資料夾內都是不同的xor key。至於解密長度"根據最新版的測試-從208到224之間都有，雖然大多數文件落在220"。暫時只能一個一個嘗試 當時的解密腳本 import os def xor\_decrypt(data, key): decrypted\_data = bytearray() key\_len = len(key) for i, byt…

無論他是哪一服都都是先異或開頭(前11字節)，

```auto
   k1 = unity_data[:11]
   key = bytearray.fromhex("55 6E 69 74 79 46 53 00 00 00 00")
   k2 = xor_decrypt(k1, key)

```

得到key，再用11字節的key解密前256個字節  
那麼只要設個程序，將k2打印出來就能知道不同版本間的key  
也可以用這個:

> [@关于异或加密的问题](https://live2dhub.com/t/topic/3177/4):
>
> 給個網址: 方便大家做xor方面的測試。 但大多還是得靠經驗，沒其他途徑。

前提是有正確得到對應版本，才能得到對應key。

---

<div class="post-metadata">

作者： ![HelloWorld](https://live2dhub.com/user_avatar/live2dhub.com/helloworld/32/4344_2.png) [@HelloWorld](https://live2dhub.com/u/HelloWorld)\
发布日期： [2024 年11 月 17 日 02:24 UTC](https://live2dhub.com/t/topic/3792/6 "2024-11-17T02:24:00Z")

</div>

感谢回复
