Beispiel #1
0
        private void cmdDonatorKey_Click(object sender, EventArgs e)
        {
            string string_0 = Clipboard.GetText().Trim();

            GClass89.smethod_1(string_0, Class123.keysPub);
            if (GClass89.Boolean_0)
            {
                int num = (int)RadMessageBox.Show("Thank you so much for donating!");
                Settings.Default.DonationKey = string_0;
                Settings.Default.Save();
                this.Close();
            }
            else
            {
                int num1 = (int)RadMessageBox.Show("The key stored in the clipboard is not valid. Please try again.");
            }
        }
Beispiel #2
0
 public static bool smethod_0(int int_1, string string_0, string string_1)
 {
     if (GClass89.timer_0 == null)
     {
         GClass89.timer_0 = new System.Windows.Forms.Timer()
         {
             Interval = 2000
         };
         GClass89.timer_0.Tick += (EventHandler)((sender, e) =>
         {
             if (GClass89.bool_0)
             {
                 return;
             }
             if (!MiningSetupAndRun.Boolean_0)
             {
                 GClass89.GClass8_0 = (GClass8)null;
             }
             else
             {
                 GClass89.GClass8_0 = new GClass8("Now mining...", "none", DateTime.Today.ToShortDateString());
             }
         });
         GClass89.timer_0.Start();
     }
     Thread.Sleep(250);
     if (MiningSetupAndRun.Boolean_0 || MiningSetupAndRun.bool_0)
     {
         return(false);
     }
     GClass89.smethod_1(string_0, string_1);
     if (GClass89.Boolean_0 || int_1 == 0)
     {
         return(false);
     }
     if (int_1 != 1)
     {
         return(int_1 % 3 == 0);
     }
     return(true);
 }
Beispiel #3
0
 public static void smethod_1(string string_0, string string_1)
 {
     GClass89.GClass8_0 = (GClass8)null;
     GClass89.bool_0    = false;
     if (string_0 == null)
     {
         GClass89.GClass8_0 = (GClass8)null;
     }
     else
     {
         byte[] numArray;
         try
         {
             numArray = Convert.FromBase64String(string_0);
         }
         catch
         {
             GClass89.GClass8_0 = (GClass8)null;
             return;
         }
         if (numArray.Length != 272)
         {
             GClass89.GClass8_0 = (GClass8)null;
         }
         else
         {
             byte[] buffer    = new byte[16];
             byte[] signature = new byte[256];
             Buffer.BlockCopy((Array)numArray, 0, (Array)buffer, 0, 16);
             Buffer.BlockCopy((Array)numArray, 16, (Array)signature, 0, 256);
             using (RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider())
             {
                 cryptoServiceProvider.FromXmlString(string_1);
                 GClass89.GClass8_0 = cryptoServiceProvider.VerifyData(buffer, (object)CryptoConfig.MapNameToOID("SHA1"), signature) ? GClass89.smethod_2(string_0) : (GClass8)null;
                 GClass89.bool_0    = GClass89.Boolean_0;
                 if (!GClass89.bool_0)
                 {
                     return;
                 }
                 Settings.Default.Mine = false;
                 Settings.Default.Save();
                 MiningSetupAndRun.smethod_1();
             }
         }
     }
 }