private async void BruteDecrypt() { decryptor = new DecryptorPlus(PartialBytesArray, text_mensajeCifrado.Text, lbl_directorio.Text); BruteDecryptorStarted(); await Task.Run(() => decryptor.Decrypt()); BruteFinished(); }
private void BruteFinished() { ProcessTimer.Stop(); ProcessTick(this, null); lbl_Keys.Text = "0"; lbl_tasks.Text = "0"; if (decryptor != null) { lbl_tiempoTranscurrido.Text = new TimeSpan(0, 0, (int)(DateTime.Now - decryptor.StartAtTime).TotalSeconds).ToString(@"d\.hh\:mm\:ss"); } decryptor = null; progressBar.Value = 100; btn_DecryptWForce.Enabled = true; btn_DecryptWKey.Enabled = true; checkBox_SkipLsb.Enabled = true; button1.Enabled = true; }