Beispiel #1
0
        private string CreateKey(string dateTimeStr)
        {
            string desKeyStr = "";

            licenceModel.Encrypt(dateTimeStr, ref desKeyStr);

            return(desKeyStr);
        }
Beispiel #2
0
        private void buttonEntry_Click(object sender, EventArgs e)
        {
            LicenceModel licenseModel = new LicenceModel(this.textBoxKey.Text, null);
            string       strEntry     = "";

            if (licenseModel.Encrypt(this.richTextBox1.Text, ref strEntry))
            {
                this.richTextBox2.Text = strEntry;
            }
            else
            {
                MessageBox.Show("加密失败");
            }
        }