//Generate Button private void Generate_Click(object sender, EventArgs e) { HashCodeGenerator hashCodeGenerator = new HashCodeGenerator(txtOriginatorSortCode.Text, txtRecipientSortCode.Text, txtPaymentValue.Text, txtRandomString.Text); string output = "" + hashCodeGenerator.GetSHA256(); txtGeneratedHash.Text = output; }
//Generate Button private void Generate_Click(object sender, EventArgs e) { HashCodeGenerator hashCodeGenerator = new HashCodeGenerator(txtOriginatorSortCode.Text, txtRecipientSortCode.Text, txtPaymentValue.Text, txtRandomNumber.Text, txtRandomString.Text); string output = "" + hashCodeGenerator.GetSHA256(); txtGeneratedHash.Text = output; MessageBox.Show("Hash Code Generated!", "Hash Code Tester", MessageBoxButtons.OK, MessageBoxIcon.Information); }