Beispiel #1
0
 public EncryptForm()
 {
     InitializeComponent();
     // 为MD5文本框设置默认值
     MyTools.SetDefaultText(textEncryptMD5Data, ConstValue.TEXT_MD5_DATA);
     // 为DES文本框设置默认值
     MyTools.SetDefaultText(textEncryptDESData, ConstValue.TEXT_DES_DATA);
     MyTools.SetDefaultText(textEncryptDESKey, ConstValue.TEXT_DES_KEY);
     // 为3DES文本框设置默认值
     MyTools.SetDefaultText(textEncryptTriDESData, ConstValue.TEXT_TRIDES_DATA);
     MyTools.SetDefaultText(textEncryptTriDESKey, ConstValue.TEXT_TRIDES_KEY);
     // 为3MAC文本框设置默认值
     MyTools.SetDefaultText(textEncryptTriMACData, ConstValue.TEXT_TRIMAC_DATA);
     MyTools.SetDefaultText(textEncryptTriMACKey, ConstValue.TEXT_TRIMAC_KEY);
 }
Beispiel #2
0
 private void MD5_Click(object sender, EventArgs e)
 {
     MyTools.SetDefaultText(textEncryptMD5Data, ConstValue.TEXT_MD5_DATA);
 }
Beispiel #3
0
 private void TriMAC_Click(object sender, EventArgs e)
 {
     MyTools.SetDefaultText(textEncryptTriMACData, ConstValue.TEXT_TRIMAC_DATA);
     MyTools.SetDefaultText(textEncryptTriMACKey, ConstValue.TEXT_TRIMAC_KEY);
 }
Beispiel #4
0
 private void DES_Click(object sender, EventArgs e)
 {
     MyTools.SetDefaultText(textEncryptDESData, ConstValue.TEXT_DES_DATA);
     MyTools.SetDefaultText(textEncryptDESKey, ConstValue.TEXT_DES_KEY);
 }