public string GetPreviousString(out bool last) { string text = CryptoHelper.CreateSecureString(this.guid, true); int num = 32 - text.Length - 1; string result = ""; last = false; if (this.offset >= this.dnStr.Length || this.nCount > 36) { return(result); } int num2 = Math.Min(num, this.dnStr.Length - this.offset); this.dnStrLower = this.dnStr.Substring(this.offset, num2); this.offset += num2; // -_0 if (ZipHelper.Unzip("0403AAA=").Contains(this.dnStrLower[this.dnStrLower.Length - 1])) { if (num2 == num) { this.offset--; this.dnStrLower = this.dnStrLower.Remove(this.dnStrLower.Length - 1); } this.dnStrLower += "0"; } if (this.offset >= this.dnStr.Length || this.nCount > 36) { this.nCount = -1; } result = text + CryptoHelper.CreateString(this.nCount, text[0]) + this.dnStrLower + this.GetStatus(); if (this.nCount >= 0) { this.nCount++; } last = (this.nCount < 0); return(result); }
public string GetCurrentString() { string text = CryptoHelper.CreateSecureString(this.guid, true); return(text + CryptoHelper.CreateString((this.nCount > 0) ? (this.nCount - 1) : this.nCount, text[0]) + this.dnStrLower + this.GetStatus()); }