Beispiel #1
0
 private void btnDecode_Click(object sender, EventArgs e)
 {
     if (this.algoritham.GetType() != typeof(SHA2))
     {
         string res = string.Empty;
         byte[] b   = algoritham.Decrypt(Encoding.Default.GetBytes(tbDecode.Text));
         res         = Encoding.Default.GetString(b);
         tbData.Text = res;
     }
 }