Ejemplo n.º 1
0
        public virtual bool Save(string fullName = null)
        {
            //Plist > ToString > GetBytes > Gzip > Base64 > Replace > GetBytes > XOR > File
            byte[] gzipc  = Crypt.GZipCompress(Encoding.ASCII.GetBytes(Plist.PlistToString(this.DataPlist)));
            string base64 = GameConvert.ToBase64(gzipc);

            if (fullName == null)
            {
                File.WriteAllBytes(this.GameDataFile, Crypt.XOR(Encoding.ASCII.GetBytes(base64), 0xB));
            }
            else
            {
                File.WriteAllBytes(fullName, Crypt.XOR(Encoding.ASCII.GetBytes(base64), 0xB));
            }
            return(true);
        }
Ejemplo n.º 2
0
 public void BuildQuery(Parameters parameters)
 {
     parameters.Add(new Property("gdw", 0));
     parameters.Add(new Property("accountID", accountId));
     parameters.Add(new Property("gjp", GameConvert.ToBase64(Encoding.ASCII.GetBytes(Crypt.XOR(password, "37526")))));
 }