コード例 #1
0
        private void btnVDigital_Click(object sender, EventArgs e)
        {
            RSA_ND RSA = new RSA_ND();

            RSA.TeDhenatPublikeXML(file);
            byte[] HashiNgaNenshkrimi = RSA.VerifikimiNenshkrimit(nenshkrimi, plain);
            rtbHngaNenshkrimi.Text = BitConverter.ToString(HashiNgaNenshkrimi);
        }
コード例 #2
0
        private void btnEnkriptimi_Click(object sender, EventArgs e)
        {
            RSA_ND objrsa = new RSA_ND();

            plain = Encoding.UTF8.GetBytes(rtbPlain.Text);
            objrsa.TeDhenatPublikeXML(file);
            cipher = objrsa.Enkriptimi(plain);

            rtbCipher.Text = Convert.ToBase64String(cipher);
        }