摘要:
——————————这是RSA加密类——————————————————————————————————————————————using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.IO;namespace ZYBEncrypt{ /// <summary> /// 非对称RSA /// </summary> public class RSA_ { private RSACryptoServicePro 阅读全文
摘要:
1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConfigFile(PasswordString,"SHA1");}elseif(PasswordFormat="MD5"){encryptPas 阅读全文
摘要:
代码很简单!如下,相信大家都看得懂的!它的属性防就像在VS里面编写的属性一样的赋值上去就行了! private void button1_Click(object sender, EventArgs e) { CheckBox cb = new CheckBox(); cb.Parent = this; cb.Text = "动态添加控件"; }代码短小精悍! 阅读全文
摘要:
using System.Runtime.InteropServices;public class Win32 { public const Int32 AW_HOR_POSITIVE = 0x00000001; // 从左到右打开窗口 public const Int32 AW_HOR_NEGATIVE = 0x00000002; // 从右到左打开窗口 public const Int32 AW_VER_POSITIVE = 0x00000004; // 从上到下打开窗口 public const Int32 AW_VER_NEGATIVE = 0x00000008; // 从下到上打开窗 阅读全文