コード例 #1
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));
        }
コード例 #2
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);
        }
コード例 #3
0
 public string GetEncrypted()
 {
     this.ApplyNewCryptoKey();
     return(ObscuredString.GetString(this.hiddenValue));
 }