摘要: ——————————这是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 阅读全文
posted @ 2012-03-28 16:59 魔_君 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConfigFile(PasswordString,"SHA1");}elseif(PasswordFormat="MD5"){encryptPas 阅读全文
posted @ 2012-03-28 16:51 魔_君 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 代码很简单!如下,相信大家都看得懂的!它的属性防就像在VS里面编写的属性一样的赋值上去就行了! private void button1_Click(object sender, EventArgs e) { CheckBox cb = new CheckBox(); cb.Parent = this; cb.Text = "动态添加控件"; }代码短小精悍! 阅读全文
posted @ 2012-03-28 16:17 魔_君 阅读(1306) 评论(1) 推荐(0) 编辑
摘要: 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; // 从下到上打开窗 阅读全文
posted @ 2012-03-28 10:15 魔_君 阅读(219) 评论(0) 推荐(0) 编辑