Unity 代码加密 Mono 编译与加密 windows版

2 篇文章 1 订阅

最后有福利!!!!

最近更新了一版最新的2019.4.34的mono,编译的都是64位的。方法参考之前的文章

Unity 2019.4.0 Mono 编译以及加密 windows版_u014234721的专栏-CSDN博客参考官方文档git,https://github.com/Unity-Technologies/mono那个太慢我复制了一份在码云上:https://gitee.com/wusongs/mono可以参考官方推荐文档https://www.mono-project.com/docs/compiling-mono/windows/以下也是参照这个文档的。另外我编译好的项目给大家一份做参考链接:https://pan.baidu.com/s/1jMxVxEpkk39qW1E6kEyO...https://blog.csdn.net/u014234721/article/details/107203359

项目克隆了最新的

git clone --recursive -b unity-2019.4-mbe https://gitee.com/wusongs/mono.git

若要编译直接打开sln是无法编译的,要安装cywin,走完流程,里面有很多命令宏定义的。

一、目的

mono加密主要是为了unity生成应用程序的代码进行加密。

当你选择mono的方法生成应用程序后,使用ILSpy等软件就可以打开Assembly-CSharp.dll,泄露自己的代码。

二、加密前后对比

如下加密前与加密后的对比。

我在Unity中新建一个cs脚本如下。

打包程序将以下文件放到ILSpy中查看

所在目录 在2019.4.34Test_Data\Managed\Assembly-CSharp.dll

所在目录 在XXX(你的程序名)_Data\Managed\Assembly-CSharp.dll

加密前

 

 

 加密后

 

 

原理

用AES.EXE对Assembly-CSharp.dll进行AES加密(生成新文件,替换旧文件),再替换我们编译好的mono-2.0-bdwgc.dll于MonoBleedingEdge\EmbedRuntime\mono-2.0-bdwgc.dll。当程序运行时我们的dll会先进行AES解密再进行加载,从而达到加密的目的。

白嫖

若实在不会可以私信我给你编译一个?编译可能会有很多坑(不过我没遇到,算不算是运气好)?算了。我给你做了一个,AES.exe和编译好的mono-2.0-bdwgc.dll,直接拿去用就行了!!

网盘地址

链接:https://pan.baidu.com/s/1C64kWcR23M5UZ9j4_q5fBw 
提取码:1bh1

或CSDN地址

AES_Mono_Unity2019.4.34.zip-Unity3D文档类资源-CSDN下载用AES.EXE对Assembly-CSharp.dll进行AES加密(生成新文件,替换旧文件),再更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/u014234721/75530531解压后目录资源如下

 

使用方法

1. 复制你的Assembly-CSharp.dll文件到<AES加密程序>目录,双击加密.bat

2. 把加密文件重命名为 Assembly-CSharp.dll替换到原编译程序目录2019.4.34Test_Data\Managed

3. 把mono-2.0-bdwgc.dll文件复制并替换到原编译程序目录MonoBleedingEdge\EmbedRuntime

4. 大功告成,你的代码已加密,并可正常运行程序了。

淘宝花钱买的最新!需要的拿去! This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of this package is to work straight out of the box with no extra steps required. While other obfuscators can stop a game from working, Beebyte's obfuscator looks for specific Unity related code that must be protected. The contents of your source files are unchanged, the obfuscation targets the compiled assembly. Features: - Supports IL2CPP - Supports Assembly Definition Files (Unity 2017.3+) - Removes Namespaces without any conflicts - Recognises Unity related code that must not be changed - Renames Classes (including MonoBehaviours) - Renames Methods - Renames Parameters - Renames Fields - Renames Properties - Renames Events - String literal obfuscation - Adds fake methods - Easy and extensive customisation using the Unity inspector window - Consistent name translations are possible across multiple builds and developers - Semantically secure cryptographic naming convention for renamed members The asset works for both Unity Free and Unity Pro version 4.2.0 onwards (including Unity 5 & 2017 & 2018). Build targets include Standalone, Android, iOS, WebGL, UWP. Other platforms are not guaranteed or supported but may become supported at a future date. IL2CPP builds are much harder to reverse engineer but strings and member information (class, method names etc) are visible in the global-metadata.dat file. Obfuscation will apply to this file adding further security. Why not complement your security with the Anti-Cheat Toolkit - a great third party asset. For more information about the Obfuscator, please see the FAQ
Unity是一款非常流行的跨平台游戏开发引擎,它可以在Windows操作系统上进行开发。关于UnityWindows上的加密,以下是一个简要的介绍。 首先,Unity本身并不提供Windows加密功能。它主要用于游戏开发和可视化效果的创建,并不涉及底层操作系统的加密。但是,Unity可以与其他加密工具和技术一起使用,以实现Windows上的加密保护。 在Windows上,我们可以利用操作系统提供的加密功能来保护Unity应用程序的安全性。例如,Windows操作系统提供了BitLocker驱动器加密,它可以对整个硬盘驱动器进行加密保护,确保数据的安全性。 此外,我们还可以使用第三方的加密工具来加强Unity应用程序的保护。这些工具可以将Unity项目文件和可执行文件进行加密,使其难以逆向工程。通过使用这些工具,我们可以阻止未经授权的用户访问和修改Unity应用程序的内容。 除了使用加密工具,我们还可以使用数字签名来确保Unity应用程序的完整性。通过为应用程序和代码签名,我们可以验证其来源和完整性,防止被修改或篡改。 总而言之,Unity本身并不提供Windows加密功能,但我们可以利用操作系统的加密功能和第三方的加密工具来保护Unity应用程序的安全性。这些措施可以阻止未经授权的用户对应用程序进行访问、修改和逆向工程,提高应用程序的安全性和保护用户数据的机密性。
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值