private void btnVerify_Click(object sender, EventArgs e) { SimpleHash hash = new SimpleHash(); if (hash.Verify(txtPassword.Text, txtHash.Text)) { Text = "Verification succeeded"; } else { Text = "Verification failed"; } }
private void btnCompute_Click(object sender, EventArgs e) { SimpleHash hash = new SimpleHash(); txtHash.Text = hash.Compute(txtPassword.Text, (int) txtIterations.Value); }