Exemple #1
0
        private void btnDES2_Click(Object sender, EventArgs e)
        {
            var buf  = GetBytes();
            var pass = GetBytes(rtPass.Text);

            var des = new DESCryptoServiceProvider();

            buf = des.Descrypt(buf, pass);

            SetResult2(buf);
        }
Exemple #2
0
        private void btnDES2_Click(Object sender, EventArgs e)
        {
            var buf  = GetBytes();
            var pass = GetBytes(rtPass.Text);

            var des = new DESCryptoServiceProvider();

            buf = des.Descrypt(buf, pass);

            rtResult.Text = buf.ToStr() + Environment.NewLine + Environment.NewLine + buf.ToHex() + Environment.NewLine + Environment.NewLine + buf.ToBase64();
        }