示例#1
0
    static void CryFile(string path)
    {
        Debug.LogWarning("cry path =" + path);
        var b  = DWFileUtil.ReadFile(path);
        var cb = GlobalCrypto.Encrypte(b);

        File.WriteAllBytes(path, cb);
    }
示例#2
0
    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);
        });
    }