摘要: using System.DirectoryServices; /// /// AD账号登陆验证 /// /// AD用户名 /// AD密码 /// active directory 中的组织单位 /// public bool Login(string UserName, string PassWord, string strOU) { String strPath = string.Format("LDAP://OU={0},OU=ZYE,DC=zhanyun,DC=com,DC=cn", strOU); DirectoryEntry AD = new Directo 阅读全文
posted @ 2013-07-10 15:50 光哥传说 阅读(804) 评论(0) 推荐(0) 编辑
摘要: using System.Security.Cryptography;using System.IO;using System.Text; //默认密钥向量 private static byte[] DyncKeys = { 0x12, 0x14, 0x14, 0x15, 0xA0, 0xA1, 0xB0, 0xB1 }; //默认加密密钥 private static byte[] Key = { 0x01, 0x02, 0x03, 0x04, 0xA0, 0xAB, 0xAC, 0xAD }; /// /// DES加密字符串/// /// 待加密的字符串 /// 加密密钥,要求为8.. 阅读全文
posted @ 2013-07-10 14:21 光哥传说 阅读(546) 评论(0) 推荐(0) 编辑