public void RandomizeCryptoKey() { string PDGAOEAMDCL = this.InternalDecrypt(); this.currentCryptoKey = ""; this.hiddenValue = ObscuredString.InternalEncrypt(PDGAOEAMDCL, this.currentCryptoKey); }
public void RandomizeCryptoKey() { string value = this.InternalDecrypt(); this.currentCryptoKey = UnityEngine.Random.Range(-2147483648, 2147483647).ToString(); this.hiddenValue = ObscuredString.InternalEncrypt(value, this.currentCryptoKey); }
public void RandomizeCryptoKey() { string str = this.InternalDecrypt(); this.currentCryptoKey = Random.get_seed().ToString(); this.hiddenValue = ObscuredString.InternalEncrypt(str, this.currentCryptoKey); }
public void ApplyNewCryptoKey() { if (this.currentCryptoKey != ObscuredString.cryptoKey) { this.hiddenValue = ObscuredString.InternalEncrypt(this.InternalDecrypt()); this.currentCryptoKey = ObscuredString.cryptoKey; } }
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)); }
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); }
private static byte[] InternalEncrypt(string value) { return(ObscuredString.InternalEncrypt(value, ObscuredString.cryptoKey)); }
private static byte[] InternalEncrypt(string PDGAOEAMDCL) => ObscuredString.InternalEncrypt(PDGAOEAMDCL, ObscuredString.cryptoKey);