Beispiel #1
0
 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";
     }
 }
Beispiel #2
0
        private void btnCompute_Click(object sender, EventArgs e)
        {
            SimpleHash hash = new SimpleHash();

            txtHash.Text = hash.Compute(txtPassword.Text, (int) txtIterations.Value);
        }