diff --git a/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs b/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs new file mode 100644 index 0000000000..3ce5da801d --- /dev/null +++ b/Assets/LuaFramework/Scripts/Utility/MEncyptUtil.cs @@ -0,0 +1,95 @@ +using UnityEngine; +using System.Collections.Generic; +using System.Reflection; +using LuaInterface; +using System; +using System.IO; +using UnityEditor; + +namespace GameLogic { + public static class MEncyptUtil { + // + //加密/解密 + static byte[] crypt(byte[] data, string key) + { + int[] ri = new int[data.Length]; + byte[] cl = System.Text.Encoding.Default.GetBytes(key); + for(long i = 0; i