예제 #1
0
        private void Button12_Click(object sender, EventArgs e)
        {
            try
            {
                string HashRegistro = Biblioteca.MD5String(
                    Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].a) +
                    Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].b) +
                    Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].c) +
                    Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].d) +
                    Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].e)
                    );

                Memo2.AppendText("\r===================================");
                Memo2.AppendText("\rId = " + ListaPagamento[Grid2.CurrentRow.Index].Id);

                if (HashRegistro == ListaPagamento[Grid2.CurrentRow.Index].f)
                {
                    Memo2.AppendText("\rHash OK - Registro não violado.");
                }
                else
                {
                    Memo2.AppendText("\rHash Diferente - Registro violado.");
                }
                Memo2.AppendText("\r===================================");
            }
            catch (Exception eError)
            {
                MessageBox.Show(eError.Message);
            }
        }
예제 #2
0
 private void Button14_Click(object sender, EventArgs e)
 {
     Button11.PerformClick();
     //
     Memo2.AppendText("\r=====================================================");
     Memo2.AppendText("\rHash Registro Bloqueado  = " + ListaPagamento[Grid2.CurrentRow.Index].f);
     Memo2.AppendText("\rChave Desbloqueio = " + Biblioteca.MD5String(ListaPagamento[Grid2.CurrentRow.Index].f + "uma_chave"));
     Memo2.AppendText("\r=====================================================");
 }
예제 #3
0
 private void Button11_Click(object sender, EventArgs e)
 {
     try
     {
         Memo2.Clear();
         Memo2.AppendText("Mês = " + Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].a));
         Memo2.AppendText("\rAno = " + Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].b));
         Memo2.AppendText("\rVencimento = " + Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].c));
         Memo2.AppendText("\rBloqueio = " + Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].d));
         Memo2.AppendText("\rLiberado = " + Biblioteca.Desencripta(ListaPagamento[Grid2.CurrentRow.Index].e));
     }
     catch (Exception eError)
     {
         MessageBox.Show(eError.Message);
     }
 }