Ejemplo n.º 1
0
        private void Button4_Click(object sender, EventArgs e)
        {
            try
            {
                string HashRegistro = Biblioteca.MD5String(
                    Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].a) +
                    Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].b) +
                    Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].c) +
                    Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].d) +
                    Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].e)
                    );

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

                if (HashRegistro == ListaPagamento[Grid1.CurrentRow.Index].f)
                {
                    Memo1.AppendText("\rHash OK - Registro não violado.");
                }
                else
                {
                    Memo1.AppendText("\rHash Diferente - Registro violado.");
                }
                Memo1.AppendText("\r===================================");
            }
            catch (Exception eError)
            {
                MessageBox.Show(eError.Message);
            }
        }
Ejemplo n.º 2
0
 private void Button6_Click(object sender, EventArgs e)
 {
     Memo1.Clear();
     for (int i = 0; i <= ListaDispositivosNaSessao.Count - 1; i++)
     {
         Memo1.AppendText("\r-- Id: " + ListaDispositivosNaSessao[i].Id + " -- Código: " + ListaDispositivosNaSessao[i].a);
     }
 }
Ejemplo n.º 3
0
 private void Button6_Click(object sender, EventArgs e)
 {
     Button3.PerformClick();
     //
     Memo1.AppendText("\r=====================================================");
     Memo1.AppendText("\rHash Registro Bloqueado  = " + ListaPagamento[Grid1.CurrentRow.Index].f);
     Memo1.AppendText("\rChave Desbloqueio = " + Biblioteca.MD5String(ListaPagamento[Grid1.CurrentRow.Index].f + "uma_chave"));
     Memo1.AppendText("\r=====================================================");
 }
Ejemplo n.º 4
0
 private void Button3_Click(object sender, EventArgs e)
 {
     try
     {
         Memo1.Clear();
         Memo1.AppendText("Mês = " + Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].a));
         Memo1.AppendText("\rAno = " + Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].b));
         Memo1.AppendText("\rVencimento = " + Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].c));
         Memo1.AppendText("\rBloqueio = " + Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].d));
         Memo1.AppendText("\rLiberado = " + Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].e));
     }
     catch (Exception eError)
     {
         MessageBox.Show(eError.Message);
     }
 }