private void btnComparar_Click(object sender, EventArgs e) { string senhaBanco = "81DC9BDB52D04DC20036DBD8313ED055"; string senha = txtEntrada.Text; CriptoMD5 md5 = new CriptoMD5(); bool res = md5.CompararMD5(senha, senhaBanco); if (res) { labelResult.Text = "Senhas iguais"; } else { labelResult.Text = "Senhas diferentes"; } }
private void btnCripto_Click(object sender, EventArgs e) { CriptoMD5 md5 = new CriptoMD5(); txtSaida.Text = md5.RetornarMD5(txtEntrada.Text); }