private void buttonBruteforceBINHash_Click(object sender, RoutedEventArgs e) { this.TimerStart = DateTime.Now; BINTimeElapsed.Tick += BINTimeElapsed_Tick; BINTimeElapsed.Interval = new TimeSpan(0, 0, 0, 1); BINTimeElapsed.Start(); System.ComponentModel.BackgroundWorker bw = new System.ComponentModel.BackgroundWorker(); bw.RunWorkerAsync(textBruteforceBINOutput.Text = BinHash.BruteforceLength(Convert.ToUInt32(textBruteforceBINInput.Text), Convert.ToInt32(textBrutefoceBINLength.Text))); image1.Visibility = Visibility.Visible; BINTimeElapsed.Stop(); }
private void textBINInput_TextChanged(object sender, TextChangedEventArgs e) { textBlockBINRemainder.Text = (27 - textBINInput.Text.Length) + "/27"; textBINOutput.Text = BinHash.GetHash(textBINInput.Text).ToString(); }