Example #1
0
    static void EncryptAssemblyCSharp(string path)
    {
        string _acsPath = path.Replace(".exe", "_Data") + "/Managed/Assembly-CSharp.dll";

        byte[] _readByte = File.ReadAllBytes(_acsPath);
        string key       = RealString.MySecSum(Application.productName);

        byte[] encrypt_data = Xxtea.XXTEA.Encrypt(_readByte, key);
        File.WriteAllBytes(_acsPath, encrypt_data);
    }
Example #2
0
    string MixString(string source)
    {
        string temString = RealString.SecSum(source);

        return((temString.Substring(16, 16) + temString.Substring(0, 16)).ToLower());
    }