private void method_8(Func <BigInteger, BigInteger> func_0, byte[] byte_0, Stream stream_0, uint uint_0, uint uint_1) { Func <BigInteger, uint, byte[]> func = new Func <BigInteger, uint, byte[]>(this.method_14); uint arg = (uint)this.method_13(); uint num = uint_0 + uint_1; for (uint num2 = uint_0; num2 < num; num2 += uint_1) { BigInteger arg2 = GClass858.smethod_0(byte_0.Skip((int)uint_0).Take((int)uint_1).ToArray <byte>()); BigInteger arg3 = func_0(arg2); byte[] array = func(arg3, arg).ToArray <byte>(); stream_0.Write(array, 0, array.Length); } }
public override byte[] vmethod_4() { byte[] array = new byte[64]; array[0] = 87; for (int i = 1; i < 64; i++) { array[i] = (byte)this.random_0.Next(1, 256); } BigInteger exponent = GClass858.smethod_0(array); BigInteger value = GClass858.smethod_2("3ba3fbfbbd62e5157c285ec65e4fd155039290adca28e46ba0f402c4dafdfa16fcfe26fb8e448fd3af608e4097c9d6a89f0a91b72c6166af77d1e46b139e7ff2"); BigInteger modulus = GClass858.smethod_2("f0550ebfc21e0672738bdbe1aa5c8d4429b198803080e82cfcfef856fea9034b07fc92b787604f4ba375afee98fa61332cc1396694dcad4306a13bb86fe53f89"); this.bigInteger_0 = exponent; return(BigInteger.ModPow(value, exponent, modulus).ToByteArray().Reverse <byte>().ToArray <byte>()); }
public override void vmethod_2(byte[] byte_0) { GClass858 gclass = new GClass858(GClass858.smethod_2("cc0306d7b0f0c671000bd655485744417a868b29dd77619e42b51f70c28e67d0bbc2caf9dd364cb0419217bcfba86c33735b543fae2b666059b59c631955962afa1f97e0f49f92bf1a5463ae89c751a661e0485c2ec6e011634abfb4a4142157"), new BigInteger(65537), BigInteger.Zero); using (MemoryStream memoryStream = new MemoryStream()) { gclass.method_12(byte_0, memoryStream, 0U, (uint)byte_0.Length); byte_0 = memoryStream.ToArray(); } BigInteger value = GClass858.smethod_0(byte_0); BigInteger modulus = GClass858.smethod_2("f0550ebfc21e0672738bdbe1aa5c8d4429b198803080e82cfcfef856fea9034b07fc92b787604f4ba375afee98fa61332cc1396694dcad4306a13bb86fe53f89"); byte[] byte_ = BigInteger.ModPow(value, this.bigInteger_0, modulus).ToByteArray().Reverse <byte>().ToArray <byte>().Take(16).ToArray <byte>(); this.method_0().method_0(byte_); }
private void method_9(Func <BigInteger, BigInteger> func_0, byte[] byte_0, Stream stream_0, uint uint_0, uint uint_1) { uint num = (uint)this.method_13(); uint num2 = uint_0 + uint_1; for (uint num3 = uint_0; num3 < num2; num3 += num) { BigInteger arg = GClass858.smethod_0(this.method_10(byte_0, (int)num2, (int)num, (int)num3)); byte[] array = func_0(arg).ToByteArray(); for (int i = (int)(num - 1U); i >= 0; i--) { stream_0.WriteByte(array[i]); } } }
private static bool smethod_1(byte[] byte_0, byte[] byte_1) { bool result; using (RSACryptoServiceProvider rsacryptoServiceProvider = new RSACryptoServiceProvider()) { RSAParameters parameters = new RSAParameters { Exponent = new byte[] { 1, 0, 1 } }; parameters.Modulus = GClass858.smethod_1("b8b8d2efed5992f8b89285b2367bfcdb28d1b781b7b852af87221c0db9ecb1bc4f1ad601b9bb931647f48aa9a91467334ddca081beecd915775ba38da95bff4d50b1ff5790d3c5a6f024688185e59362722570520f646e2c6dab3af3b2b736c585c49231f6300051a5238d3d80ea6653e4ecb3904dea8c364fe1936df9629a26db9a30f538cdd61414b6112df43038f66c73df802990f341d34fadeb447918c695748b0eac9f55d3ece99868506f616861e897cd062cae57b2e3ae1737adb4b9042e2902453c4a5946029fe53928f19fe7c9928f990a4e6ee01105a1d300e2aabab995b3dd7333e9564e9212938a6422a5e706710fce47ca78f3e62168faaea9"); rsacryptoServiceProvider.ImportParameters(parameters); result = rsacryptoServiceProvider.VerifyHash(byte_0, byte_1, HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1); } return(result); }
public static bool smethod_0(int int_0, int int_1, string string_0, out DateTimeOffset dateTimeOffset_0, out GClass849.GEnum9 genum9_0, string string_1 = "basic") { genum9_0 = GClass849.GEnum9.Unknown; dateTimeOffset_0 = DateTimeOffset.MaxValue; bool result3; try { bool is64BitProcess = Environment.Is64BitProcess; string text = string.Format("{0}", DateTime.Now.Ticks); HttpResponseMessage result = GClass849.httpClient_0.PostAsync(string.Format("https://powerofdark.space/license/verify/{0}/", string_1), new FormUrlEncodedContent(new Dictionary <string, string> { { "ServerId", string.Format("{0}", int_0) }, { "UserId", string.Format("{0}", int_1) }, { "x64", is64BitProcess.ToString() ?? "" }, { "Token", text }, { "Key", string_0 }, { "Extra", "v2" } })).Result; IEnumerable <string> source; if (result.Headers.TryGetValues("X-Signature", out source) && result.IsSuccessStatusCode) { string result2 = result.Content.ReadAsStringAsync().Result; byte[] byte_ = GClass858.smethod_1(source.First <string>()); Dictionary <string, string> dictionary = JsonConvert.DeserializeObject <Dictionary <string, string> >(result2); byte[] byte_2 = SHA1.Create().ComputeHash(Encoding.UTF8.GetBytes(result2)); if (dictionary["Token"] != text) { result3 = false; } else if (!GClass849.smethod_1(byte_2, byte_)) { result3 = false; } else { genum9_0 = (GClass849.GEnum9) int.Parse(dictionary["LicenseState"]); result3 = (genum9_0 == (GClass849.GEnum9) 1); } } else { result3 = false; } } catch { result3 = false; } return(result3); }
public static BigInteger smethod_2(string string_0) { return(GClass858.smethod_0(GClass858.smethod_1(string_0))); }