Esempio n. 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);
    }
Esempio n. 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);
        });
    }