コード例 #1
0
        public void RandomizeCryptoKey()
        {
            string PDGAOEAMDCL = this.InternalDecrypt();

            this.currentCryptoKey = "";
            this.hiddenValue      = ObscuredString.InternalEncrypt(PDGAOEAMDCL, this.currentCryptoKey);
        }
コード例 #2
0
        public void RandomizeCryptoKey()
        {
            string value = this.InternalDecrypt();

            this.currentCryptoKey = UnityEngine.Random.Range(-2147483648, 2147483647).ToString();
            this.hiddenValue      = ObscuredString.InternalEncrypt(value, this.currentCryptoKey);
        }
コード例 #3
0
ファイル: ObscuredString.cs プロジェクト: zunaalabaya/TAC-BOT
        public void RandomizeCryptoKey()
        {
            string str = this.InternalDecrypt();

            this.currentCryptoKey = Random.get_seed().ToString();
            this.hiddenValue      = ObscuredString.InternalEncrypt(str, this.currentCryptoKey);
        }
コード例 #4
0
 public void ApplyNewCryptoKey()
 {
     if (this.currentCryptoKey != ObscuredString.cryptoKey)
     {
         this.hiddenValue      = ObscuredString.InternalEncrypt(this.InternalDecrypt());
         this.currentCryptoKey = ObscuredString.cryptoKey;
     }
 }
コード例 #5
0
        private string InternalDecrypt()
        {
            if (!this.inited)
            {
                this.currentCryptoKey = ObscuredString.cryptoKey;
                this.hiddenValue      = ObscuredString.InternalEncrypt("");
                this.inited           = true;
            }
            string HDAJOEOLHGG = this.currentCryptoKey;

            if (string.IsNullOrEmpty(HDAJOEOLHGG))
            {
                HDAJOEOLHGG = ObscuredString.cryptoKey;
            }
            return(ObscuredString.EncryptDecrypt(ObscuredString.GetString(this.hiddenValue), HDAJOEOLHGG));
        }
コード例 #6
0
        private string InternalDecrypt()
        {
            if (!this.inited)
            {
                this.currentCryptoKey = ObscuredString.cryptoKey;
                this.hiddenValue      = ObscuredString.InternalEncrypt(string.Empty);
                this.fakeValue        = string.Empty;
                this.inited           = true;
            }
            string text = this.currentCryptoKey;

            if (string.IsNullOrEmpty(text))
            {
                text = ObscuredString.cryptoKey;
            }
            string text2 = ObscuredString.EncryptDecrypt(ObscuredString.GetString(this.hiddenValue), text);

            if (ObscuredCheatingDetector.IsRunning && !string.IsNullOrEmpty(this.fakeValue) && text2 != this.fakeValue)
            {
                ObscuredCheatingDetector.Instance.OnCheatingDetected();
            }
            return(text2);
        }
コード例 #7
0
 private static byte[] InternalEncrypt(string value)
 {
     return(ObscuredString.InternalEncrypt(value, ObscuredString.cryptoKey));
 }
コード例 #8
0
 private static byte[] InternalEncrypt(string PDGAOEAMDCL) => ObscuredString.InternalEncrypt(PDGAOEAMDCL, ObscuredString.cryptoKey);