static void CryFile(string path) { Debug.LogWarning("cry path =" + path); var b = DWFileUtil.ReadFile(path); var cb = GlobalCrypto.Encrypte(b); File.WriteAllBytes(path, cb); }
static void EnDLL() { string inputPath = Application.dataPath + "/XGame/Script/Lua"; ForeachFile(inputPath, (FileInfo f) => { var b = DWFileUtil.ReadFile(f.FullName); var cb = GlobalCrypto.Encrypte(b); File.WriteAllBytes(Application.streamingAssetsPath + "/Lua/" + f.Name, cb); }); }