Пример #1
0
    public static void DecrptyAB()
    {
        DirectoryInfo directory = new DirectoryInfo(m_BunleTargetPath);

        FileInfo[] files = directory.GetFiles("*", SearchOption.AllDirectories);
        for (int i = 0; i < files.Length; i++)
        {
            if (!files[i].Name.EndsWith("meta") && !files[i].Name.EndsWith(".manifest"))
            {
                AES.AESFileDecrypt(files[i].FullName, "Ocean");
            }
        }
        Debug.Log("解密完成!");
    }
    public static void DecryptAssetBundle()
    {
        DirectoryInfo dirInfo = new DirectoryInfo(m_BuildABPath);

        FileInfo[] files = dirInfo.GetFiles("*", SearchOption.AllDirectories);
        foreach (var item in files)
        {
            if (item.FullName.EndsWith(".meta") && item.FullName.EndsWith(".manifest"))
            {
                continue;
            }
            AES.AESFileDecrypt(item.FullName, "xiaohailin");
        }
    }
Пример #3
0
 public static void TestDec()
 {
     AES.AESFileDecrypt(Application.dataPath + "/GameData/Data/Xml/TestData.xml", "Ocean");
 }
    public static void TestDecrypt()
    {
        string filePath = Application.dataPath + "/TestEncrypt.xml";

        AES.AESFileDecrypt(filePath, "XHL");
    }